COULD NOT ASSEMBLE TRANSACTION, ERR PROPOSAL RESPONSE WAS NOT SUCCESSFUL, ERROR CODE 500, MSG INSTANTIATION POLICY VIOLATION: SIGNATURE SET DIDNOT SATIFY POLICY
#fabric-chaincode
Faisal
Failure Scenario
"[channel org1channel] failed to get chaincode container info for privatechannel_cc:v1: could not get chaincode code: chaincode fingerprint mismatch: data mismatch"
peer chaincode upgrade -C org1channel -n privatechannel_cc -l golang -v v2 -c '{"Args":["init"]}' -P "OutOf(2,'org1MSP.member','org2MSP.member')" -o 192.168.171.32:7050 --tls --cafile /data/tls/ca.pem --clientauth --keyfile /data/tls/client-key.pem --certfile /data/tls/client.pem
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Meet the biggest technologists in blockchain at Genesis DevCon
Suzana Joel <suzana.joel@...>
------------------------------ This message and any files or text attached to it are intended only for the recipients named above, contain information that is confidential or privileged. If you are not an intended recipient, you must not read, copy, use or disclose this communication. Please also notify the sender by replying to this message, and then delete all copies of it from your system.
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Re: Wrong world state
#fabric
#fabric-questions
Joao Antunes
Thank you for reaching out again Dave, I'll investigate more and if possible I'll provide more data to this thread and if that's the case a Jira issue
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Re: Hyperledger Fabric Scalability
Christopher Ferris
Indeed, I think there's often confusion about network topology when it comes to "organizations". To be clear, there are 3 types of users, orgs that operate ordering nodes, orgs that operate peer nodes and end users of the system/application who likely do not operate more than just an application leveraging one of the SDKs. As for orgs that operate peer nodes, these could be distinguished between those who are operating an endorsing node, and those merely operating a validating/committing node. The former need to be able to operate the chaincode the latter do not, they just maintain a copy of the ledger. In a system with thousands or more users, there might only be tens or hundreds of organization nodes operating peers. Think of it using the banking example. The banks may create a consortium network and Bank America, TD Bank, Wells Fargo, Sovereign Bank each operate peer nodes that are both endorsing and validating. Maybe they also operate ordering nodes. Then, all the TD bank account holders would have identities affiliated with TD Bank, and all the Bank America account holders similarly have identities affiliated with Bank America, etc. The account holders don't operate nodes, they simply interact with the system from their mobile or web application. The channels might be bilateral between the banks, and transactions that exchanged funds from one bank to another would be processed over those bilateral channels. Otherwise, there would be a channel per bank against which account holders would process their individual transactions. The chaincode would leverage access controls that ensured that the account holder, or an authorized entity could process transactions against their account. As for future blog posts, I plan to publish updates once we have 2.0 images published. I'll share the blog links here. Chris
On Sat, Nov 9, 2019 at 1:00 AM Brian Behlendorf <bbehlendorf@...> wrote:
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Re: Hyperledger Fabric Scalability
alok gupta <metech11@...>
Hello Brian, Thank you so much for your guidance. It helps, we will develop the architecture according to your inputs.
On Sat, Nov 9, 2019 at 11:30 AM Brian Behlendorf <bbehlendorf@...> wrote:
--
Thank you Regards Alok Gupta +91-9646579412
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Re: Hyperledger Fabric Scalability
Brian Behlendorf <bbehlendorf@...>
The blog posts are the right place to start your exploration of the issues, but you can't go much further without testing it yourselves.
toggle quoted messageShow quoted text
You should be apprehensive about depending upon any blockchain for high TPS and high numbers of nodes at the same time. Proper blockchain engineering at this point will be about finding ways to store the least amount of data on chain, with the least number of required TPS, as possible. Do not confuse Fabric or any other blockchain to be a high performance big data management tool. If anything, it's about "small data" that happens to be trust-critical. As I understand your use case, in my opinion, you should not be storing all sensor data and transaction history directly on ledger; store that in large files chunked by time and gas station network, share those offledger (encrypted S3 buckets ate cheap and global, or IPFS), and use Fabric for storing hashes that can attest to the timing, provenance, metadata and integrity of that off-ledger data. You also shouldn't try to have every gas station be a node in the network - I presume they are already part of a chain of gas stations, and within a chain there is already the trust of a single corporation, so the corp office itself should run nodes on behalf of its stations. It doesn't sound like you need prevention of double spend; I'm not even sure why you need smart contracts (you mean chaincode?) to "monitor fuel levels". If scale is your number one goal, constantly look for ways to reduce the frequency and amount to write to the blockchain. (Reads, of course, are cheap and easy to scale). Brian
On 9 November 2019 10:47:52 AM GMT+08:00, alok gupta <metech11@...> wrote:
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Re: Wrong world state
#fabric
#fabric-questions
David Enyeart
We haven't seen such a problem in Fabric system tests (e.g. there are tests that repeatedly crash peers and ensures that peer restart recovers in-flight data with correct data integrity). The occurrences we've seen have been due to things like mounting incorrect database volumes or having data left over from a prior trial. Not that it would be impossible for there to be a bug in the state database code, but nobody has opened such an issue. So if you can reproduce such a problem, please open a bug in Jira with reproduction steps. Hi, Recently I got a strange behaviour in my network regarding ledger height, that was not consistent. I solved that issue but, after a bit more investigation, I found that some values in world state were not correct. I used "peer node reset" across all my peers and the value was corrected. So is it correct of me to assume that the ledger is correct but the world state is not? How can this happen? My setup, is 4 peers, 2 orderers, 2 ca and 2 orgs (2 peers, 1 orderer and 1 ca in each). I'm also using kafka setup. To communicate with the Fabric, I'm using Java SDK.
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Re: Hyperledger Fabric Scalability
alok gupta <metech11@...>
Hello Mark & Christopher, Thanks for your reply. I have gone through the blog but I am still apprehensive whether we would be able to support hundreds or thousands of organisations? We did TPS optimisation after struggling a bit with MVCC error, our solution is running fine for a single fuel station. Right now there are max 50 tps. But not sure how to take this forward. What should be our approach? Please advise.
On Sat, 9 Nov 2019, 07:59 Mark Rakhmilevich, <mark.rakhmilevich@...> wrote:
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Re: Hyperledger Fabric Scalability
Mark Rakhmilevich
Alok, We have seen throughput in high hundreds of TPS to low thousands of TPS in Oracle projects. The scalability and performance depend on many factors well explained in Chris’ blog posts. Certainly transaction payload size, batching parameters in the ordering service, number of channels an ordering cluster has to support given certain network bandwidth play a significant role. There are also techniques to batch transaction data, which are useful, for example, to capture an audit log from many IOT sensor readings. Feel free to reach out directly to discuss specifics.
Best Regards, Mark
From: Christopher Ferris <chris.ferris@...>
Alok,
I wrote a couple of blog posts earlier this year on Hyperledger Fabric performance and scale.
There have been some more recent improvements that should improve performance even more when 2.0 ships. I'll have another post up with those results. There are some additional efforts in the community where performance has been pushed even further.
Hope this helps.
Chris
On Wed, Nov 6, 2019 at 3:36 AM alok gupta <metech11@...> wrote:
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Wrong world state
#fabric
#fabric-questions
Joao Antunes
Hi, I solved that issue but, after a bit more investigation, I found that some values in world state were not correct. I used "peer node reset" across all my peers and the value was corrected. So is it correct of me to assume that the ledger is correct but the world state is not? How can this happen? My setup, is 4 peers, 2 orderers, 2 ca and 2 orgs (2 peers, 1 orderer and 1 ca in each). I'm also using kafka setup. To communicate with the Fabric, I'm using Java SDK.
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Re: Which cert should be copied for TLS( ca-cert.pem or tls-cert.pem)
#fabric-ca
Nye Liu <nye@...>
From memory (I could be wrong): If you are using a single instance CA, ca-cert.pem is the
root cert for both TLS and non-TLS certs issues by ca-server,
including the tls-cert.pem issued to itself, so the clients
should only need ca-cert.pem. On 11/6/2019 5:43 PM, Jeehoon Lim
wrote:
Hi all.
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Prehoda Balazs
Hi, I attached the orderer logs. Thanks again, Balazs
On Fri, Nov 8, 2019 at 4:53 AM Jay G <guojiannan1101@...> wrote:
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Jay Guo
hi Balazs, could you attach full orderer log so we could diagnose? or pls observe orderer log to see how long it took to elect a leader, some thing similar to "Raft leader changed: 0 -> x" thx - J
On Thu, Nov 7, 2019 at 11:03 PM Prehoda Balazs <prehoda.balazs@...> wrote:
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Unable to debug smart contract from VS Code debugger
Siddharth Jain
I am unable to debug my smart contract from vs code debugger. Here is my setup:
anyone knows what is the problem and how to fix it? Using 1.4 of Fabric
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Re: Peers with different heights
#fabric
#database
#consensus
David Enyeart
In addition to CORE_PEER_GOSSIP_EXTERNALENDPOINT for exposing the peer endpoints to other orgs, make sure you understand how anchor peers are configured to bootstap the cross-org communication: Hi Dave, You are right and thank you for sending the lines of the default behaviour.
I have CORE_PEER_GOSSIP_BOOTSTRAP configured on both peer2 from org2 and org1 and they both communicate with peer1-org2 and peer1-org1 respectively. But there is no gossip between orgs. Currently checking the effect of both variables in this setup.
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Re: CA keys and storing/sending them
Gari Singh <garis@...>
Private keys are never sent anywhere. Only public keys are included with transactions.
toggle quoted messageShow quoted text
If you are using the fabric-ca-client or any of the SDKs, by default privates keys are created on the local file system of the host in which enroll. You can also choose to use the PKCS11 provider to have the private generated and stored in an HSM. If you do generate it on the local file system, then you should set the permissions to 0400 on *nix based OS’s. You should also encrypt the file system ( especially when running in a public cloud) Gari Singh garis@... 978-846-7499
On Nov 7, 2019, at 11:32 AM, Trevor Lee Oakley <trevor@...> wrote:
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Documentation Workgroup: Agenda for Friday, 08 November
Anthony O'Dowd <a_o-dowd@...>
Hello All,
We hold our regular documentation workgroup call this week, both Eastern and Western hemispheres. All US and European clocks have now moved back to standard time from daylight savings, so call times have returned to normal! As is now usual, you can read the summary minutes for last week's call :https://wiki.hyperledger.org/display/fabric/2019+11+01+DWG+Agenda Note that we've added a recordings page where you can catch up: https://wiki.hyperledger.org/display/fabric/Recordings A particular highlight was Chris Gabriel's demo: https://wiki.hyperledger.org/download/attachments/24773827/2109.11.01.DWG.part2.mp4?api=v2 Please feel free to contribute to the agenda for this week: https://wiki.hyperledger.org/display/fabric/2019+11+08+DWG+Agenda We've also added an outline agenda for next week's meeting : https://wiki.hyperledger.org/display/fabric/2019+11+15+DWG+Agenda Again, feel free to add items. Best regards, Anthony, Pam, Joe, Nik Meeting Details ------------- Please use the following link to attend the meeting: https://zoom.us/j/6223336701 The meeting times are as follows: https://wiki.hyperledger.org/display/fabric/Documentation+Working+Group Meeting 104A: Friday 01 Nov 1130 India Standard Time 1400 China Standard Time 1500 Japan Standard Time 1700 Australia Eastern Time 1400 Singapore Time 1000 Gulf Standard Time 0900 Moscow Standard Time 0600 Greenwich Mean Time 0700 Central European Time Meeting 104B: Friday 01 Nov 1000 Central Daylight Time 1100 Eastern Daylight Time 0800 Pacific Daylight Time 1200 Brasil Standard Time 1600 Greenwich Mean Time 1700 Central European Time 1800 Moscow Standard Time Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Re: Peers with different heights
#fabric
#database
#consensus
Joao Antunes
Hi Dave,
I have CORE_PEER_GOSSIP_BOOTSTRAP configured on both peer2 from org2 and org1 and they both communicate with peer1-org2 and peer1-org1 respectively. But there is no gossip between orgs. Currently checking the effect of both variables in this setup.
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
Re: Peers with different heights
#fabric
#database
#consensus
David Enyeart
'peer node reset' should only be used if you suspect your peer's data is corrupted - it resets all channels to genesis block so that peer can re-pull/re-process blocks, but wouldn't change block dissemination behavior on your network. Hi, Just making a small update. I received another answer that suggested to do a peer node reset:
Unfortunately, I don't have the 1.4.3 fabric version. So I scraped this solution. I restart the peer and it's CouchDB. After the startup, the peer started to get the blocks that were missing and getting synchronized. At the end of this, all the peers were in sync. I checked docker-compose.yml and I have no CORE_PEER_GOSSIP_USELEADERELECTION and CORE_PEER_GOSSIP_ORGLEADER variables defined. So it's acting by default. Was is the default behaviour? (And thank you, David Enyeart, for the explanation). 2019-11-07 12:29:08.498 UTC [gossip.privdata] reconcile -> DEBU 65a92e Reconciliation cycle finished successfully. no items to reconcile (at this stage I know that is still out of sync).
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
CA keys and storing/sending them
Trevor Lee Oakley <trevor@...>
Hi
I understand that HLF uses a client server CA and each member has its own CA. But txn approvals I have a question about securely storing and sending keys. Are there any guidelines for this?
Trevor
|
||||||||||||||||||||||||||||||||||
|