Fabric Node SDK for 2.0
Siddharth Jain
Hello,
I am trying to understand what Node packages to use to develop with Fabric 2.0
In v2.0, fabric-network is
the only recommended API for developing client applications.
but I understand fabric-network will only contain methods to transact
with the chaincode (i.e., invoke and query). is that correct?
what packages do I need to use to:
The transactional API's of this package have been replaced by fabric-common. The chaincode administrative API's of this package will be replaced by fabric-admin. The channel based administrative API's of this package will not be replaced. Use the Hyperledger Fabric command line feature for those actions.
|
||||
|
||||
Pluggable transaction endorsement and validation
#fabric-chaincode
#fabric
#consensus
hariomdebut1503@...
I am using the fabric 1.4.6. I am unable to use pluggable transaction endorsement and validation. There is no samples available. I also tried http://github.com/hyperledger/fabric-chaincode-go/pkg/statebased but it uses different shim and protos packages. If i get some sample for pluggable endorsement policy. It will be very helpful.
|
||||
|
||||
Re: How decentralized is the Raft orderer?
See our Raft sample for an example for Raft orderers spanning multiple organizations. Best, Hakan
On Tue, Mar 31, 2020 at 10:51 PM Siddharth Jain <siddjain@...> wrote: pinging back on this as I have yet to see an example where all the orderer nodes are NOT owned by a single org
|
||||
|
||||
Re: introduce msp into chaincode for authentication
qs meng <qsmeng@...>
Hi Yacov, yes, a peer would authenticate the proposal creator, who is a member of fabric network. But in chaincode container, there is no way to authenticate an identity who belongs to one client application. If a chaincode could get CA certificate, it is feasible for chaincode to authenticate identities who belongs to client application. I do not know if I explain it clearly. Thank you. Regards, qs meng
At 2020-04-01 14:45:32, "Yacov Manevich" <YACOVM@...> wrote:
The proposal is authenticated by the peer before it gets into the chaincode.
|
||||
|
||||
Error: error getting endorser client for channel
music prime
Error: error getting endorser client for channel: endorser client failed to connect to peer0.fruit.model.com:12051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 192.168.16.2:12051: connect: connection refused" kindly help
|
||||
|
||||
Re: introduce msp into chaincode for authentication
Yacov
The proposal is authenticated by the peer
before it gets into the chaincode.
From: "qs meng" <qsmeng@...> To: "fabric@..." <fabric@...> Date: 04/01/2020 03:26 AM Subject: [EXTERNAL] [Hyperledger Fabric] introduce msp into chaincode for authentication Sent by: fabric@... Hi, I suggest to add msp support into chaincode to authenticate identitis in client applications. The getCreator api only get the creator and take it as authenticated already. A way to do: for an endorsing peer, it has a function to get CA from configure block and autheniticate the transaction creator. Just copy the function to chaicode part. Is it feasible? Thank you. Regards, qs meng
|
||||
|
||||
Re: How decentralized is the Raft orderer?
Yacov
This is a sample.... You can use Raft with
an organization for each orderer node.
From: "Siddharth Jain" <siddjain@...> To: fabric@... Date: 03/31/2020 11:51 PM Subject: [EXTERNAL] Re: [Hyperledger Fabric] How decentralized is the Raft orderer? Sent by: fabric@... pinging back on this as I have yet to see an example where all the orderer nodes are NOT owned by a single org e.g., there is only a single org in https://github.com/hyperledger/fabric-samples/blob/master/first-network/configtx.yaml#L352
|
||||
|
||||
introduce msp into chaincode for authentication
qs meng <qsmeng@...>
Hi, I suggest to add msp support into chaincode to authenticate identitis in client applications. The getCreator api only get the creator and take it as authenticated already. A way to do: for an endorsing peer, it has a function to get CA from configure block and autheniticate the transaction creator. Just copy the function to chaicode part. Is it feasible? Thank you. Regards, qs meng
|
||||
|
||||
Re: How decentralized is the Raft orderer?
Siddharth Jain
pinging back on this as I have yet to see an example where all the orderer nodes are NOT owned by a single org
e.g., there is only a single org in https://github.com/hyperledger/fabric-samples/blob/master/first-network/configtx.yaml#L352
|
||||
|
||||
Re: Supported elliptic curves in Hyperledger Fabric
#fabric
#fabric-ca
Ashutosh Kumar
Regarding curve question : Fabric and Fabric CA supports go implementation of elliptic curve , which is short-form Weierstrass curve with a=-3. I know , Fabric supports Pluggable crypto implementation , but I do not know , how this is applicable to elliptic
curve. Need to look into that more closely.
Thanks and Regards.
Ashutosh Kumar
From: fabric@... <fabric@...> on behalf of vid.kersic via Lists.Hyperledger.Org <vid.kersic=yahoo.com@...>
Sent: Tuesday, March 31, 2020 3:44 AM To: fabric@... <fabric@...> Cc: fabric@... <fabric@...> Subject: [Hyperledger Fabric] Supported elliptic curves in Hyperledger Fabric #fabric #fabric-ca Hyperledger Fabric officially supports three elliptic curves: prime256v1, secp384r1 and secp521r1. Is it possible to use other elliptic curves in X.509 certificates? I read something about pluggable cryptography in Fabric, but I don't know if it's related
to certificates.
Thanks.
|
||||
|
||||
Re: [Hyperpedger Fabric] Emit Multiple Events through single invoke method
Mr.Phuwanai Thummavet
Single transaction can emit only one event. The latest event will override other events.
On Tue, 31 Mar 2020, 13:05 Divyansh Rana, <divyanshrana265@...> wrote:
|
||||
|
||||
Supported elliptic curves in Hyperledger Fabric
#fabric
#fabric-ca
Vid201
Hyperledger Fabric officially supports three elliptic curves: prime256v1, secp384r1 and secp521r1. Is it possible to use other elliptic curves in X.509 certificates? I read something about pluggable cryptography in Fabric, but I don't know if it's related to certificates.
Thanks.
|
||||
|
||||
[Hyperpedger Fabric] Emit Multiple Events through single invoke method
divyanshrana265@...
Hi all, While emitting multiple events in serial through one single chaincode invoke method, I receive only one event that is being sent in last, while I had subscribed to all the events. Is there a limitation on the events sent through a single invoke method, or am I doing it wrong?
|
||||
|
||||
Re: [EXTERNAL] Re: [Hyperledger Fabric] upgrade not working
Park, Jungil
Thanks a lot David!!
It works!! I just removed the volume for couchdb compose file and start rebuilding transactions. 4
Met vriendelijke groet / Kind regards
Gustav Mahlerlaan 10 | 1082 PP Amsterdam | The Netherlands
From: David Enyeart <enyeart@...>
WARNING: External email – exercise caution. Please forward suspicious emails to your local security team. The error indicates that you must drop the CouchDB database that is in v1.x format, before starting the v2.0 peer. The first time the v2.0 peer starts, it will rebuild the CouchDB state database in v2.x format.
1. command docker run --rm -v /opt/hyperledger/production/peer0org1:/var/hyperledger/production/ \ 2. ouput 2020-03-30 11:29:56.778 UTC [kvledger] UpgradeDBs -> INFO 001 Ledger data folder from config = [/var/hyperledger/production/ledgersData]
3. second command docker run --rm -v /opt/hyperledger/production/peer0org1:/var/hyperledger/production/ \ 4. ouput :
This message has been sent by ABN AMRO Bank N.V., which has its seat at Gustav Mahlerlaan 10 (1082 PP) Amsterdam, the Netherlands, and is registered in the Commercial Register of Amsterdam under number 34334259.
This message has been sent by ABN AMRO Bank N.V., which has its seat at Gustav Mahlerlaan 10 (1082 PP) Amsterdam, the Netherlands, and is registered in the Commercial Register of Amsterdam under number 34334259.
|
||||
|
||||
Deleting a range from a private collection
Victor Dods
Hi all,
With the restriction on range-query and then write in a private collection during the same transaction, I'm wondering how people achieve an effective "delete range". My end-goal is that all private collection keys in some range [start, end) are deleted, and I don't care what the keys are, nor their values. At the moment I'm doing a rather hacky: (1) range-query the keys in the range to delete in one transaction. (2) submitting a second transaction which specifies those keys explicitly for deletion, so that DelPrivateData can be called on each one. The problems with this though are: (a) unless additional locking logic is implemented, there's a race condition if someone were to add a key within that range between steps (1) and (2), then the end result is that there's this stray key that step (2) didn't delete. (b) a potentially huge amount of data (I can easily imagine a realistic scenario with millions of keys) has to be queried and then sent back, even though the essential operation doesn't require any of that information. It seems like a `DelPrivateDataByRange(collection, startKey, endKey string) error` method would do the trick, but nothing like that is present in Fabric 1.4 or 2.0. How are others achieving this effect? The main usecase I'm thinking of is complying with GDPR style erasure requests which require deleting ranges of data from private collections.
|
||||
|
||||
Re: Limiting dissemination of hashes of private collection keys and values?
Victor Dods
Interesting, that's a good idea. While I don't like that I have to manage these salts manually, that seems like it should work. Thanks! Victor Dods Chief Software Architect LedgerDomain
On Sat, Mar 28, 2020 at 4:02 AM Yacov Manevich <YACOVM@...> wrote: Regarding the "same salt for all keys":
|
||||
|
||||
Re: upgrade not working
David Enyeart
The error indicates that you must drop the CouchDB database that is in v1.x format, before starting the v2.0 peer. The first time the v2.0 peer starts, it will rebuild the CouchDB state database in v2.x format. Hi Team, I am using 1.4.0 with couchdb and tried to upgrade to 2.0. I use the following commands.
-v /opt/hfabric.v1x/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp/ \ --name peer0.org1.example.com \ --env CORE_LEDGER_STATE_STATEDATABASE=CouchDB \ hyperledger/fabric-peer:2.0 peer node upgrade-dbs
2020-03-30 11:29:56.783 UTC [kvledger] dropStateLevelDB -> INFO 002 Dropping StateLevelDB at location [/var/hyperledger/production/ledgersData/stateLeveldb] ...if present 2020-03-30 11:29:56.783 UTC [kvledger] dropConfigHistoryDB -> INFO 003 Dropping ConfigHistoryDB at location [/var/hyperledger/production/ledgersData/configHistory] 2020-03-30 11:29:56.784 UTC [kvledger] dropBookkeeperDB -> INFO 004 Dropping BookkeeperDB at location [/var/hyperledger/production/ledgersData/bookkeeper] 2020-03-30 11:29:56.784 UTC [kvledger] dropHistoryDB -> INFO 005 Dropping HistoryDB at location [/var/hyperledger/production/ledgersData/historyLeveldb] ...if present 2020-03-30 11:29:56.784 UTC [fsblkstorage] DeleteBlockStoreIndex -> INFO 006 Dropping the index dir [/var/hyperledger/production/ledgersData/chains/index]... if present
-v /opt/hfabric.v1x/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp/ \ --name peer0.org1.example.com \ hyperledger/fabric-peer:2.0 peer node start
5. 2020-03-30 09:00:24.383 UTC [nodeCmd] serve -> INFO 001 Starting peer: 6. Version: 2.0.0 7. Commit SHA: 0432c3e 8. Go version: go1.13.4 9. OS/Arch: linux/amd64 10. Chaincode: 11. Base Docker Namespace: hyperledger 12. Base Docker Label: org.hyperledger.fabric 13. Docker Namespace: hyperledger 14. 2020-03-30 09:00:24.384 UTC [peer] getLocalAddress -> INFO 002 Auto-detected peer address: 172.17.0.2:7051 15. 2020-03-30 09:00:24.384 UTC [peer] getLocalAddress -> INFO 003 Host is 0.0.0.0 , falling back to auto-detected address: 172.17.0.2:7051 16. 2020-03-30 09:00:24.414 UTC [gossip.service] New -> INFO 004 Initialize gossip with endpoint 172.17.0.2:7051 17. 2020-03-30 09:00:24.416 UTC [gossip.gossip] New -> INFO 005 Creating gossip service with self membership of Endpoint: , InternalEndpoint: 172.17.0.2:7051, PKI-ID: 65dfd2f8791c19aacad25b10a94d2db1219f7be324344483be4bdf8aee89bd3b, Metadata: 18. 2020-03-30 09:00:24.416 UTC [gossip.gossip] New -> WARN 006 External endpoint is empty, peer will not be accessible outside of its organization 19. 2020-03-30 09:00:24.416 UTC [gossip.gossip] start -> INFO 007 Gossip instance 172.17.0.2:7051 started 20. 2020-03-30 09:00:24.417 UTC [ledgermgmt] NewLedgerMgr -> INFO 008 Initializing LedgerMgr 21. 2020-03-30 09:00:24.456 UTC [leveldbhelper] openDBAndCheckFormat -> INFO 009 DB is empty Setting db format as 2.0 22. 2020-03-30 09:00:24.483 UTC [leveldbhelper] openDBAndCheckFormat -> INFO 00a DB is empty Setting db format as 2.0 23. 2020-03-30 09:00:24.484 UTC [ledgermgmt] NewLedgerMgr -> INFO 00b Initialized LedgerMgr 24. 2020-03-30 09:00:24.484 UTC [lifecycle] InitializeLocalChaincodes -> INFO 00c Initialized lifecycle cache with 0 already installed chaincodes 25. 2020-03-30 09:00:24.485 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00d Entering computeChaincodeEndpoint with peerHostname: 172.17.0.2 26. 2020-03-30 09:00:24.485 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00e Exit with ccEndpoint: 172.17.0.2:7052 27. 2020-03-30 09:00:24.485 UTC [nodeCmd] createChaincodeServer -> WARN 00f peer.chaincodeListenAddress is not set, using 172.17.0.2:7052 28. 2020-03-30 09:00:24.490 UTC [sccapi] DeploySysCC -> INFO 010 deploying system chaincode 'lscc' 29. 2020-03-30 09:00:24.490 UTC [sccapi] DeploySysCC -> INFO 011 deploying system chaincode 'cscc' 30. 2020-03-30 09:00:24.490 UTC [sccapi] DeploySysCC -> INFO 012 deploying system chaincode 'qscc' 31. 2020-03-30 09:00:24.490 UTC [sccapi] DeploySysCC -> INFO 013 deploying system chaincode '_lifecycle' 32. 2020-03-30 09:00:24.490 UTC [nodeCmd] serve -> INFO 014 Deployed system chaincodes 33. 2020-03-30 09:00:24.490 UTC [peer] Initialize -> INFO 015 Loading chain mychannel 34. 2020-03-30 09:00:24.490 UTC [ledgermgmt] OpenLedger -> INFO 016 Opening ledger with id = mychannel 35. 2020-03-30 09:00:24.491 UTC [fsblkstorage] newBlockfileMgr -> INFO 017 Getting block information from block storage 36. 2020-03-30 09:00:24.540 UTC [fsblkstorage] syncIndex -> INFO 018 Start building index from block [0] to last block [35356] 37. 2020-03-30 09:00:24.542 UTC [fsblkstorage] syncIndex -> INFO 019 Indexed block number [0] 38. 2020-03-30 09:00:35.837 UTC [fsblkstorage] syncIndex -> INFO 01a Indexed block number [10000] 39. 2020-03-30 09:00:47.392 UTC [fsblkstorage] syncIndex -> INFO 01b Indexed block number [20000] 40. 2020-03-30 09:01:00.008 UTC [fsblkstorage] syncIndex -> INFO 01c Indexed block number [30000] 41. 2020-03-30 09:01:06.764 UTC [fsblkstorage] syncIndex -> INFO 01d Finished building index. Last block indexed [35356] 42. 2020-03-30 09:01:06.764 UTC [kvledger] recommitLostBlocks -> INFO 01e Recommitting lost blocks - firstBlockNum=0, lastBlockNum=35356, recoverables=[]kvledger.recoverable{(*lockbasedtxmgr.LockBasedTxMgr)(0xc00021cfa0), (*history.DB)(0xc005fda980)} 43. 2020-03-30 09:01:06.765 UTC [lockbasedtxmgr] CommitLostBlock -> INFO 01f Recommitting block [0] to state database 44. 2020-03-30 09:01:06.766 UTC [history] CommitLostBlock -> INFO 020 Recommitting block [0] to history database 45. 2020-03-30 09:01:06.772 UTC [cceventmgmt] HandleStateUpdates -> INFO 021 Channel [mychannel]: Handling deploy or update of chaincode [chaincode] 46. 2020-03-30 09:01:06.778 UTC [valimpl] preprocessProtoBlock -> WARN 022 Channel [mychannel]: Block [4] Transaction index [0] TxId [b5199e1b5d1f4522eca11680757652ae2882ebce5b66d4b534e5a5ccfcd3562d] marked as invalid by committer. Reason code [ENDORSEMENT_POLICY_FAILURE] 47. 2020-03-30 09:01:09.088 UTC [lockbasedtxmgr] CommitLostBlock -> INFO 023 Recommitting block [1000] to state database 48. 2020-03-30 09:01:09.090 UTC [history] CommitLostBlock -> INFO 024 Recommitting block [1000] to history database 49. 2020-03-30 09:01:11.437 UTC [lockbasedtxmgr] CommitLostBlock -> INFO 025 Recommitting block [2000] to state database 50. 2020-03-30 09:01:11.438 UTC [history] CommitLostBlock -> INFO 026 Recommitting block [2000] to history database 51. 2020-03-30 09:01:13.755 UTC [lockbasedtxmgr] CommitLostBlock -> INFO 027 Recommitting block [3000] to state database 52. 2020-03-30 09:01:13.756 UTC [history] CommitLostBlock -> INFO 028 Recommitting block [3000] to history database 53. 2020-03-30 09:01:16.122 UTC [lockbasedtxmgr] CommitLostBlock -> INFO 029 Recommitting block [4000] to state database 54. 2020-03-30 09:01:16.123 UTC [history] CommitLostBlock -> INFO 02a Recommitting block [4000] to history database 55. 2020-03-30 09:01:16.836 UTC [valimpl] preprocessProtoBlock -> WARN 02b Channel [mychannel]: Block [4297] Transaction index [2] TxId [8a17e87c38c6c8f99e59166695feae179cf5ca99494a6167fe23e7ff23c104e9] marked as invalid by committer. Reason code [MVCC_READ_CONFLICT] 56. 2020-03-30 09:01:16.836 UTC [valimpl] preprocessProtoBlock -> WARN 02c Channel [mychannel]: Block [4297] Transaction index [3] TxId [c78daa54b1c61f6c54d330af34649137d719374bf43a7a8189ae5d09dc1f31ad] marked as invalid by committer. Reason code [MVCC_READ_CONFLICT] After this, still I got error below 2020-03-30 11:33:03.108 UTC [leveldbhelper] openDBAndCheckFormat -> INFO 00a DB is empty Setting db format as 2.0 2020-03-30 11:33:03.195 UTC [kvledger] func1 -> ERRO 00b Please execute the 'peer node upgrade-dbs' command to upgrade the database format: unexpected format. db info = [CouchDB for state database], data format = [], expected format = [2.0] 2020-03-30 11:33:03.195 UTC [gossip.gossip] Stop -> INFO 00c Stopping gossip 2020-03-30 11:33:03.195 UTC [gossip.discovery] Stop -> INFO 00d Stopping 2020-03-30 11:33:03.195 UTC [gossip.discovery] Stop -> INFO 00e Stopped 2020-03-30 11:33:03.195 UTC [gossip.comm] Stop -> INFO 00f Stopping 2020-03-30 11:33:03.195 UTC [gossip.comm] Stop -> INFO 010 Stopped panic: Error in instantiating ledger provider: unexpected format. db info = [CouchDB for state database], data format = [], expected format = [2.0] goroutine 1 [running]: Does anyone any idea what happen here? Thanks, Jungil. This message has been sent by ABN AMRO Bank N.V., which has its seat at Gustav Mahlerlaan 10 (1082 PP) Amsterdam, the Netherlands, and is registered in the Commercial Register of Amsterdam under number 34334259.
|
||||
|
||||
Re: upgrade not working
Park, Jungil
Hi Team,
Can anyone help with this? Does anyone experience a similar issue like this?
Met vriendelijke groet / Kind regards
Gustav Mahlerlaan 10 | 1082 PP Amsterdam | The Netherlands
From: jungil.park@... <jungil.park@...>
Hi Team,
I am using 1.4.0 with couchdb and tried to upgrade to 2.0. I use the following commands.
1. command docker run --rm -v /opt/hyperledger/production/peer0org1:/var/hyperledger/production/ \ -v /opt/hfabric.v1x/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp/ \ --name peer0.org1.example.com \ --env CORE_LEDGER_STATE_STATEDATABASE=CouchDB \ hyperledger/fabric-peer:2.0 peer node upgrade-dbs 2. ouput
2020-03-30 11:29:56.778 UTC [kvledger] UpgradeDBs -> INFO 001 Ledger data folder from config = [/var/hyperledger/production/ledgersData] 2020-03-30 11:29:56.783 UTC [kvledger] dropStateLevelDB -> INFO 002 Dropping StateLevelDB at location [/var/hyperledger/production/ledgersData/stateLeveldb] ...if present 2020-03-30 11:29:56.783 UTC [kvledger] dropConfigHistoryDB -> INFO 003 Dropping ConfigHistoryDB at location [/var/hyperledger/production/ledgersData/configHistory] 2020-03-30 11:29:56.784 UTC [kvledger] dropBookkeeperDB -> INFO 004 Dropping BookkeeperDB at location [/var/hyperledger/production/ledgersData/bookkeeper] 2020-03-30 11:29:56.784 UTC [kvledger] dropHistoryDB -> INFO 005 Dropping HistoryDB at location [/var/hyperledger/production/ledgersData/historyLeveldb] ...if present 2020-03-30 11:29:56.784 UTC [fsblkstorage] DeleteBlockStoreIndex -> INFO 006 Dropping the index dir [/var/hyperledger/production/ledgersData/chains/index]... if present
3. second command docker run --rm -v /opt/hyperledger/production/peer0org1:/var/hyperledger/production/ \ -v /opt/hfabric.v1x/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp/ \ --name peer0.org1.example.com \ hyperledger/fabric-peer:2.0 peer node start
4. ouput : 5. 2020-03-30 09:00:24.383 UTC [nodeCmd] serve -> INFO 001 Starting peer: 6. Version: 2.0.0 7. Commit SHA: 0432c3e 8. Go version: go1.13.4 9. OS/Arch: linux/amd64 10. Chaincode: 11. Base Docker Namespace: hyperledger 12. Base Docker Label: org.hyperledger.fabric 13. Docker Namespace: hyperledger 14. 2020-03-30 09:00:24.384 UTC [peer] getLocalAddress -> INFO 002 Auto-detected peer address: 172.17.0.2:7051 15. 2020-03-30 09:00:24.384 UTC [peer] getLocalAddress -> INFO 003 Host is 0.0.0.0 , falling back to auto-detected address: 172.17.0.2:7051 16. 2020-03-30 09:00:24.414 UTC [gossip.service] New -> INFO 004 Initialize gossip with endpoint 172.17.0.2:7051 17. 2020-03-30 09:00:24.416 UTC [gossip.gossip] New -> INFO 005 Creating gossip service with self membership of Endpoint: , InternalEndpoint: 172.17.0.2:7051, PKI-ID: 65dfd2f8791c19aacad25b10a94d2db1219f7be324344483be4bdf8aee89bd3b, Metadata: 18. 2020-03-30 09:00:24.416 UTC [gossip.gossip] New -> WARN 006 External endpoint is empty, peer will not be accessible outside of its organization 19. 2020-03-30 09:00:24.416 UTC [gossip.gossip] start -> INFO 007 Gossip instance 172.17.0.2:7051 started 20. 2020-03-30 09:00:24.417 UTC [ledgermgmt] NewLedgerMgr -> INFO 008 Initializing LedgerMgr 21. 2020-03-30 09:00:24.456 UTC [leveldbhelper] openDBAndCheckFormat -> INFO 009 DB is empty Setting db format as 2.0 22. 2020-03-30 09:00:24.483 UTC [leveldbhelper] openDBAndCheckFormat -> INFO 00a DB is empty Setting db format as 2.0 23. 2020-03-30 09:00:24.484 UTC [ledgermgmt] NewLedgerMgr -> INFO 00b Initialized LedgerMgr 24. 2020-03-30 09:00:24.484 UTC [lifecycle] InitializeLocalChaincodes -> INFO 00c Initialized lifecycle cache with 0 already installed chaincodes 25. 2020-03-30 09:00:24.485 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00d Entering computeChaincodeEndpoint with peerHostname: 172.17.0.2 26. 2020-03-30 09:00:24.485 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00e Exit with ccEndpoint: 172.17.0.2:7052 27. 2020-03-30 09:00:24.485 UTC [nodeCmd] createChaincodeServer -> WARN 00f peer.chaincodeListenAddress is not set, using 172.17.0.2:7052 28. 2020-03-30 09:00:24.490 UTC [sccapi] DeploySysCC -> INFO 010 deploying system chaincode 'lscc' 29. 2020-03-30 09:00:24.490 UTC [sccapi] DeploySysCC -> INFO 011 deploying system chaincode 'cscc' 30. 2020-03-30 09:00:24.490 UTC [sccapi] DeploySysCC -> INFO 012 deploying system chaincode 'qscc' 31. 2020-03-30 09:00:24.490 UTC [sccapi] DeploySysCC -> INFO 013 deploying system chaincode '_lifecycle' 32. 2020-03-30 09:00:24.490 UTC [nodeCmd] serve -> INFO 014 Deployed system chaincodes 33. 2020-03-30 09:00:24.490 UTC [peer] Initialize -> INFO 015 Loading chain mychannel 34. 2020-03-30 09:00:24.490 UTC [ledgermgmt] OpenLedger -> INFO 016 Opening ledger with id = mychannel 35. 2020-03-30 09:00:24.491 UTC [fsblkstorage] newBlockfileMgr -> INFO 017 Getting block information from block storage 36. 2020-03-30 09:00:24.540 UTC [fsblkstorage] syncIndex -> INFO 018 Start building index from block [0] to last block [35356] 37. 2020-03-30 09:00:24.542 UTC [fsblkstorage] syncIndex -> INFO 019 Indexed block number [0] 38. 2020-03-30 09:00:35.837 UTC [fsblkstorage] syncIndex -> INFO 01a Indexed block number [10000] 39. 2020-03-30 09:00:47.392 UTC [fsblkstorage] syncIndex -> INFO 01b Indexed block number [20000] 40. 2020-03-30 09:01:00.008 UTC [fsblkstorage] syncIndex -> INFO 01c Indexed block number [30000] 41. 2020-03-30 09:01:06.764 UTC [fsblkstorage] syncIndex -> INFO 01d Finished building index. Last block indexed [35356] 42. 2020-03-30 09:01:06.764 UTC [kvledger] recommitLostBlocks -> INFO 01e Recommitting lost blocks - firstBlockNum=0, lastBlockNum=35356, recoverables=[]kvledger.recoverable{(*lockbasedtxmgr.LockBasedTxMgr)(0xc00021cfa0), (*history.DB)(0xc005fda980)} 43. 2020-03-30 09:01:06.765 UTC [lockbasedtxmgr] CommitLostBlock -> INFO 01f Recommitting block [0] to state database 44. 2020-03-30 09:01:06.766 UTC [history] CommitLostBlock -> INFO 020 Recommitting block [0] to history database 45. 2020-03-30 09:01:06.772 UTC [cceventmgmt] HandleStateUpdates -> INFO 021 Channel [mychannel]: Handling deploy or update of chaincode [chaincode] 46. 2020-03-30 09:01:06.778 UTC [valimpl] preprocessProtoBlock -> WARN 022 Channel [mychannel]: Block [4] Transaction index [0] TxId [b5199e1b5d1f4522eca11680757652ae2882ebce5b66d4b534e5a5ccfcd3562d] marked as invalid by committer. Reason code [ENDORSEMENT_POLICY_FAILURE] 47. 2020-03-30 09:01:09.088 UTC [lockbasedtxmgr] CommitLostBlock -> INFO 023 Recommitting block [1000] to state database 48. 2020-03-30 09:01:09.090 UTC [history] CommitLostBlock -> INFO 024 Recommitting block [1000] to history database 49. 2020-03-30 09:01:11.437 UTC [lockbasedtxmgr] CommitLostBlock -> INFO 025 Recommitting block [2000] to state database 50. 2020-03-30 09:01:11.438 UTC [history] CommitLostBlock -> INFO 026 Recommitting block [2000] to history database 51. 2020-03-30 09:01:13.755 UTC [lockbasedtxmgr] CommitLostBlock -> INFO 027 Recommitting block [3000] to state database 52. 2020-03-30 09:01:13.756 UTC [history] CommitLostBlock -> INFO 028 Recommitting block [3000] to history database 53. 2020-03-30 09:01:16.122 UTC [lockbasedtxmgr] CommitLostBlock -> INFO 029 Recommitting block [4000] to state database 54. 2020-03-30 09:01:16.123 UTC [history] CommitLostBlock -> INFO 02a Recommitting block [4000] to history database 55. 2020-03-30 09:01:16.836 UTC [valimpl] preprocessProtoBlock -> WARN 02b Channel [mychannel]: Block [4297] Transaction index [2] TxId [8a17e87c38c6c8f99e59166695feae179cf5ca99494a6167fe23e7ff23c104e9] marked as invalid by committer. Reason code [MVCC_READ_CONFLICT] 56. 2020-03-30 09:01:16.836 UTC [valimpl] preprocessProtoBlock -> WARN 02c Channel [mychannel]: Block [4297] Transaction index [3] TxId [c78daa54b1c61f6c54d330af34649137d719374bf43a7a8189ae5d09dc1f31ad] marked as invalid by committer. Reason code [MVCC_READ_CONFLICT]
After this, still I got error below
2020-03-30 11:33:03.108 UTC [leveldbhelper] openDBAndCheckFormat -> INFO 00a DB is empty Setting db format as 2.0 2020-03-30 11:33:03.195 UTC [kvledger] func1 -> ERRO 00b Please execute the 'peer node upgrade-dbs' command to upgrade the database format: unexpected format. db info = [CouchDB for state database], data format = [], expected format = [2.0] 2020-03-30 11:33:03.195 UTC [gossip.gossip] Stop -> INFO 00c Stopping gossip 2020-03-30 11:33:03.195 UTC [gossip.discovery] Stop -> INFO 00d Stopping 2020-03-30 11:33:03.195 UTC [gossip.discovery] Stop -> INFO 00e Stopped 2020-03-30 11:33:03.195 UTC [gossip.comm] Stop -> INFO 00f Stopping 2020-03-30 11:33:03.195 UTC [gossip.comm] Stop -> INFO 010 Stopped panic: Error in instantiating ledger provider: unexpected format. db info = [CouchDB for state database], data format = [], expected format = [2.0] goroutine 1 [running]:
Does anyone any idea what happen here?
Thanks, Jungil.
This message has been sent by ABN AMRO Bank N.V., which has its seat at Gustav Mahlerlaan 10 (1082 PP) Amsterdam, the Netherlands, and is registered in the Commercial Register of Amsterdam under number 34334259. This message has been sent by ABN AMRO Bank N.V., which has its seat at Gustav Mahlerlaan 10 (1082 PP) Amsterdam, the Netherlands, and is registered in the Commercial Register of Amsterdam under number 34334259.
|
||||
|
||||
Next Hyperledger Fabric Application Developer Community call (with revised agenda link) - this Thursday, 2nd April @ 3pm UTC time (4pm UK (+1), 11am ET (-5 hrs), 8am PT(-8 hrs)
Paul O'Mahoney <mahoney@...>
dear Fabric Application Developer, the next Fabric Application Developer community call is scheduled for this Thursday 2nd April @ 3pm UTC - 4pm UK time (+1), 11am ET (-5 hrs), 8am PT(-8 hrs) - see time zones here. It lasts approx 30-60 mins FYI. The agenda is here -> https://wiki.hyperledger.org/display/fabric/Agendas%3A+Fabric+Application+Developer+Community+Call+Meetings This community call is held bi-weekly via Zoom webconference and is aimed at : -
helping the worldwide Hyperledger Fabric Application Developer community
grow (eg. developing applications, smart contracts, developing application
clients, using the SDKs, tutorials/demos etc - NodeJS/TypeScript,
Java, Go etc etc) If
you wish to share content on a call, just let me know via email direct
or DM me on Rocketchat (ID: mahoney1) and I'll put an item on the agenda.
Provide the following: The Zoom webconference ID is https://zoom.us/my/hyperledger.community More information can be found on the community page -> https://wiki.hyperledger.org/display/fabric/Fabric+Application+Developer+Community+Calls You can get calendar invites (eg iCal) here many thanks for your time - feel free to forward this email if you think it is of interest to a colleague. Paul O'Mahony Community Lead - Hyperledger Fabric Developer Community RocketChat: mahoney1 mahoney@... 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 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
|
||||
|
||||
Next Hyperledger Fabric Application Developer Community call - this Thursday, 2nd April @ 3pm UTC time (4pm UK (+1), 11am ET (-5 hrs), 8am PT(-8 hrs)
Paul O'Mahoney <mahoney@...>
dear Fabric Application
Developer,
the next Fabric Application Developer community call is scheduled for this Thursday 2nd April @ 3pm UTC - 4pm UK time (+1), 11am ET (-5 hrs), 8am PT(-8 hrs) - see time zones here. It lasts approx 30-60 mins FYI. The agenda will be posted here -> https://wiki.hyperledger.org/display/fabric/Meeting+Agendas%3A+Fabric+Application+Developer+Community+Call This community call is held bi-weekly via Zoom webconference and is aimed at : -
helping the worldwide Hyperledger Fabric Application Developer community
grow (eg. developing applications, smart contracts, developing application
clients, using the SDKs, tutorials/demos etc - NodeJS/TypeScript,
Java, Go etc etc) If
you wish to share content on a call, just let me know via email direct
or DM me on Rocketchat (ID: mahoney1) and I'll put an item on the agenda.
Provide the following: The Zoom webconference ID is https://zoom.us/my/hyperledger.community More information can be found on the community page -> https://wiki.hyperledger.org/display/fabric/Fabric+Application+Developer+Community+Calls You can get calendar invites (eg iCal) here many thanks for your time - feel free to forward this email if you think it is of interest to a colleague. Paul O'Mahony Community Lead - Hyperledger Fabric Developer Community RocketChat: mahoney1 mahoney@... 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
|
||||
|