Re: Submit large amount of data
Samuel Venzi
CTO @ GoLedger
On 21 Feb 2022 18:13 -0300, Ahmet Orkun Gedik <orkun.gedik@...>, wrote:
toggle quoted message
Show quoted text
Hi,
I am trying to submit large amount of data into a block in the chain. But because of amount of data size, decided to split document into several segments and save into next blocks in chain instead of storing data in one block. But even I split the data, facing with the error below. I am not sure that on the right way. As a first step, created a block for each row in the document and store data in the chain. But because of the poor performance, decided to change the strategy to split whole document. Can anyone suggest I am in the right way? And how can I fix this error? Is there any limit to store a document in a block?
sahip@ksbcpoc:~/development/bcapplication$ node invokeInitiateAssets.js
Mspids: OrdererMSP,Org1MSP
Create assets:
Creating data ...
Submitting data...
Submitting data...
Submitting data...
Submitting data...
2022-02-21T20:53:08.257Z - error: [Endorser]: sendProposal[org1peer-api.127-0-0-1.nip.io:8080] - Received error response from: grpc://localhost:8080 error: Error: 8 RESOURCE_EXHAUSTED: grpc: trying to send message larger than max (122401212 vs. 104857600)
2022-02-21T20:53:08.258Z - error: [Endorser]: sendProposal[org1peer-api.127-0-0-1.nip.io:8080] - rejecting with: Error: 8 RESOURCE_EXHAUSTED: grpc: trying to send message larger than max (122401212 vs. 104857600)
2022-02-21T20:53:08.261Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G0:0 - error on endorsement to org1peer-api.127-0-0-1.nip.io:8080 error Error: 8 RESOURCE_EXHAUSTED: grpc: trying to send message larger than max (122401212 vs. 104857600)
at Object.callErrorFromStatus (/home/sahip/development/bcapplication/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/home/sahip/development/bcapplication/node_modules/@grpc/grpc-js/build/src/client.js:180:52)
at Object.onReceiveStatus (/home/sahip/development/bcapplication/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141)
at Object.onReceiveStatus (/home/sahip/development/bcapplication/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
at /home/sahip/development/bcapplication/node_modules/@grpc/grpc-js/build/src/call-stream.js:182:78
at processTicksAndRejections (internal/process/task_queues.js:77:11) {
code: 8,
details: 'grpc: trying to send message larger than max (122401212 vs. 104857600)',
metadata: [Metadata],
connection: [Object],
peer: 'org1peer-api.127-0-0-1.nip.io:8080'
}
Saygýlarýmla/Best regards/Mit freundlichen Grüßen,
Ahmet Orkun Gedik
Sap Basis Ýzmir Yönetici Takým Lideri / SAP Basis Executive Team Leader
Sap Basis Ýzmir Yönetici Takým Liderliði
|
KoçSistem
Bilgi ve Ýletiþim Hizmetleri A.Þ.
T: +90 (232) 242 0699
M:+90 (549) 742 3219
|

|

|

|

|

|

|
<image007.png>
Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez.
This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
|
|
Submit large amount of data
Hi,
I am trying to submit large amount of data into a block in the chain. But because of amount of data size, decided to split document into several segments and save into next blocks in chain instead of storing data in one block. But even
I split the data, facing with the error below. I am not sure that on the right way. As a first step, created a block for each row in the document and store data in the chain. But because of the poor performance, decided to change the strategy to split whole
document. Can anyone suggest I am in the right way? And how can I fix this error? Is there any limit to store a document in a block?
sahip@ksbcpoc:~/development/bcapplication$ node invokeInitiateAssets.js
Mspids: OrdererMSP,Org1MSP
Create assets:
Creating data ...
Submitting data...
Submitting data...
Submitting data...
Submitting data...
2022-02-21T20:53:08.257Z - error: [Endorser]: sendProposal[org1peer-api.127-0-0-1.nip.io:8080] - Received error response from: grpc://localhost:8080 error: Error: 8 RESOURCE_EXHAUSTED: grpc: trying to send message larger than max (122401212
vs. 104857600)
2022-02-21T20:53:08.258Z - error: [Endorser]: sendProposal[org1peer-api.127-0-0-1.nip.io:8080] - rejecting with: Error: 8 RESOURCE_EXHAUSTED: grpc: trying to send message larger than max (122401212 vs. 104857600)
2022-02-21T20:53:08.261Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G0:0 - error on endorsement to org1peer-api.127-0-0-1.nip.io:8080 error Error: 8 RESOURCE_EXHAUSTED: grpc: trying to send message larger than max (122401212
vs. 104857600)
at Object.callErrorFromStatus (/home/sahip/development/bcapplication/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/home/sahip/development/bcapplication/node_modules/@grpc/grpc-js/build/src/client.js:180:52)
at Object.onReceiveStatus (/home/sahip/development/bcapplication/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141)
at Object.onReceiveStatus (/home/sahip/development/bcapplication/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
at /home/sahip/development/bcapplication/node_modules/@grpc/grpc-js/build/src/call-stream.js:182:78
at processTicksAndRejections (internal/process/task_queues.js:77:11) {
code: 8,
details: 'grpc: trying to send message larger than max (122401212 vs. 104857600)',
metadata: [Metadata],
connection: [Object],
peer: 'org1peer-api.127-0-0-1.nip.io:8080'
}
Saygılarımla/Best regards/Mit freundlichen Grüßen,
Ahmet Orkun Gedik
Sap Basis İzmir Yönetici Takım Lideri / SAP Basis Executive Team Leader
Sap Basis İzmir Yönetici Takım Liderliği
|
KoçSistem
Bilgi ve İletişim Hizmetleri A.Ş.
T: +90 (232) 242 0699
M:+90 (549) 742 3219
|

|

|

|

|

|

|

Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
|
|
Re: TIMEOUT problem during submitTransaction
Thank you David. It worked perfectly
J
toggle quoted message
Show quoted text
From: David Faulstich <davidfdr@...>
Sent: Monday, February 21, 2022 7:30 PM
To: Ahmet Orkun Gedik <orkun.gedik@...>
Cc: fabric@...
Subject: Re: [Hyperledger Fabric] TIMEOUT problem during submitTransaction
/*
* Create a Gateway connection
*
* Gateway instances can and should be reused rather than connecting to submit every transaction
*/
export const
createGateway
=
async
(connectionProfile: Record<string, unknown>,
identity:
string,
wallet: Wallet): Promise<Gateway> => {
logger.debug({
connectionProfile,
identity },
'Configuring gateway');
const gateway =
new
Gateway();
const options: GatewayOptions = {
wallet,
identity,
discovery: {
enabled:
true,
asLocalhost: config.asLocalHost
},
eventHandlerOptions: {
commitTimeout: config.commitTimeOut,
endorseTimeout: config.endorseTimeOut,
strategy:
DefaultEventHandlerStrategies.PREFER_MSPID_SCOPE_ANYFORTX,
},
queryHandlerOptions: {
timeout: config.queryTimeOut,
strategy:
DefaultQueryHandlerStrategies.PREFER_MSPID_SCOPE_ROUND_ROBIN,
},
};
await gateway.connect(connectionProfile,
options);
return gateway;
};
Em seg., 21 de fev. de 2022 às 13:07, Ahmet Orkun Gedik <orkun.gedik@...> escreveu:
Hi,
I am trying to submit big amount of data into a block. During the execution phase facing with the error, below;
2022-02-21T16:00:07.564Z - error: [Endorser]: sendProposal[org1peer-api.127-0-0-1.nip.io:8080] -
org1peer-api.127-0-0-1.nip.io:8080 timed out after: 30000
2022-02-21T16:00:07.565Z - error: [Endorser]: sendProposal[org1peer-api.127-0-0-1.nip.io:8080] - rejecting
with: Error: REQUEST TIMEOUT
2022-02-21T16:00:07.569Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G0:0 - error on endorsement to
org1peer-api.127-0-0-1.nip.io:8080 error Error: REQUEST TIMEOUT
at Timeout._onTimeout (/home/sahip/development/bcapplication/node_modules/fabric-common/lib/Endorser.js:142:26)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7) {
connection: [Object],
peer: 'org1peer-api.127-0-0-1.nip.io:8080'
}
Please find the client code below;
for (let k = 0; k < 2550000; k++) {
bigdata = bigdata + 'orkun.gedik|This is a test record;';
}
bigdata = bigdata + '*';
console.info('Submitting data...');
let response = await contract.submitTransaction('CreateAsset', bigdata, bigdata);
console.log(JSON.parse(response.toString()));
How can increase timeout value?
Thank you for your co-operation.
Saygılarımla/Best regards/Mit freundlichen Grüßen,
Ahmet Orkun Gedik
Sap Basis İzmir Yönetici Takım Lideri / SAP Basis Executive Team Leader
Sap Basis İzmir Yönetici Takım Liderliği
|
KoçSistem
Bilgi ve İletişim Hizmetleri A.Ş.
T: +90 (232) 242 0699
M:+90 (549) 742 3219
|

|

|

|

|

|

|

Gizlilik Sınıflandırması : HİZMETE ÖZEL
Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen
e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus
sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez.
This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making
any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason.
This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
--
Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
|
|
Re: TIMEOUT problem during submitTransaction

David F. D. Reis
I forgot to mention the "fabric-samples" example:
Regards.
David
Em seg., 21 de fev. de 2022 às 13:30, David Faulstich < davidfdr@...> escreveu:
toggle quoted message
Show quoted text
Look at this: Example:
-- /*
* Create a Gateway connection
*
* Gateway instances can and should be
reused rather than connecting to submit every transaction
*/
export const createGateway
= async (connectionProfile: Record<string,
unknown>, identity: string, wallet: Wallet):
Promise<Gateway> => {
logger.debug({ connectionProfile, identity }, 'Configuring gateway');
const gateway = new Gateway();
const options:
GatewayOptions = {
wallet,
identity,
discovery: { enabled: true, asLocalhost: config.asLocalHost },
eventHandlerOptions: {
commitTimeout: config.commitTimeOut,
endorseTimeout: config.endorseTimeOut,
strategy: DefaultEventHandlerStrategies.PREFER_MSPID_SCOPE_ANYFORTX,
},
queryHandlerOptions: {
timeout: config.queryTimeOut,
strategy: DefaultQueryHandlerStrategies.PREFER_MSPID_SCOPE_ROUND_ROBIN,
},
};
await gateway.connect(connectionProfile, options);
return gateway;
}; --
Regards,
David
Em seg., 21 de fev. de 2022 às 13:07, Ahmet Orkun Gedik < orkun.gedik@...> escreveu:
Hi,
I am trying to submit big amount of data into a block. During the execution phase facing with the error, below;
2022-02-21T16:00:07.564Z - error: [Endorser]: sendProposal[org1peer-api.127-0-0-1.nip.io:8080] - org1peer-api.127-0-0-1.nip.io:8080 timed out after: 30000
2022-02-21T16:00:07.565Z - error: [Endorser]: sendProposal[org1peer-api.127-0-0-1.nip.io:8080] - rejecting with: Error: REQUEST TIMEOUT
2022-02-21T16:00:07.569Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G0:0 - error on endorsement to org1peer-api.127-0-0-1.nip.io:8080 error Error: REQUEST TIMEOUT
at Timeout._onTimeout (/home/sahip/development/bcapplication/node_modules/fabric-common/lib/Endorser.js:142:26)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7) {
connection: [Object],
peer: 'org1peer-api.127-0-0-1.nip.io:8080'
}
Please find the client code below;
for (let k = 0; k < 2550000; k++) {
bigdata = bigdata + 'orkun.gedik|This is a test record;';
}
bigdata = bigdata + '*';
console.info('Submitting data...');
let response = await contract.submitTransaction('CreateAsset', bigdata, bigdata);
console.log(JSON.parse(response.toString()));
How can increase timeout value?
Thank you for your co-operation.
Saygılarımla/Best regards/Mit freundlichen Grüßen,
Ahmet Orkun Gedik
Sap Basis İzmir Yönetici Takım Lideri / SAP Basis Executive Team Leader
Sap Basis İzmir Yönetici Takım Liderliği
|
KoçSistem
Bilgi ve İletişim Hizmetleri A.Ş.
T: +90 (232) 242 0699
M:+90 (549) 742 3219
|

|

|

|

|

|

|

Gizlilik Sınıflandırması : HİZMETE ÖZEL
Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
--
|
|
Re: TIMEOUT problem during submitTransaction

David F. D. Reis
Look at this: Example:
-- /*
* Create a Gateway connection
*
* Gateway instances can and should be
reused rather than connecting to submit every transaction
*/
export const createGateway
= async (connectionProfile: Record<string,
unknown>, identity: string, wallet: Wallet):
Promise<Gateway> => {
logger.debug({ connectionProfile, identity }, 'Configuring gateway');
const gateway = new Gateway();
const options:
GatewayOptions = {
wallet,
identity,
discovery: { enabled: true, asLocalhost: config.asLocalHost },
eventHandlerOptions: {
commitTimeout: config.commitTimeOut,
endorseTimeout: config.endorseTimeOut,
strategy: DefaultEventHandlerStrategies.PREFER_MSPID_SCOPE_ANYFORTX,
},
queryHandlerOptions: {
timeout: config.queryTimeOut,
strategy: DefaultQueryHandlerStrategies.PREFER_MSPID_SCOPE_ROUND_ROBIN,
},
};
await gateway.connect(connectionProfile, options);
return gateway;
}; --
Regards,
David
Em seg., 21 de fev. de 2022 às 13:07, Ahmet Orkun Gedik < orkun.gedik@...> escreveu:
toggle quoted message
Show quoted text
Hi,
I am trying to submit big amount of data into a block. During the execution phase facing with the error, below;
2022-02-21T16:00:07.564Z - error: [Endorser]: sendProposal[org1peer-api.127-0-0-1.nip.io:8080] - org1peer-api.127-0-0-1.nip.io:8080 timed out after: 30000
2022-02-21T16:00:07.565Z - error: [Endorser]: sendProposal[org1peer-api.127-0-0-1.nip.io:8080] - rejecting with: Error: REQUEST TIMEOUT
2022-02-21T16:00:07.569Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G0:0 - error on endorsement to org1peer-api.127-0-0-1.nip.io:8080 error Error: REQUEST TIMEOUT
at Timeout._onTimeout (/home/sahip/development/bcapplication/node_modules/fabric-common/lib/Endorser.js:142:26)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7) {
connection: [Object],
peer: 'org1peer-api.127-0-0-1.nip.io:8080'
}
Please find the client code below;
for (let k = 0; k < 2550000; k++) {
bigdata = bigdata + 'orkun.gedik|This is a test record;';
}
bigdata = bigdata + '*';
console.info('Submitting data...');
let response = await contract.submitTransaction('CreateAsset', bigdata, bigdata);
console.log(JSON.parse(response.toString()));
How can increase timeout value?
Thank you for your co-operation.
Saygılarımla/Best regards/Mit freundlichen Grüßen,
Ahmet Orkun Gedik
Sap Basis İzmir Yönetici Takım Lideri / SAP Basis Executive Team Leader
Sap Basis İzmir Yönetici Takım Liderliği
|
KoçSistem
Bilgi ve İletişim Hizmetleri A.Ş.
T: +90 (232) 242 0699
M:+90 (549) 742 3219
|

|

|

|

|

|

|

Gizlilik Sınıflandırması : HİZMETE ÖZEL
Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
|
|
TIMEOUT problem during submitTransaction
Hi,
I am trying to submit big amount of data into a block. During the execution phase facing with the error, below;
2022-02-21T16:00:07.564Z - error: [Endorser]: sendProposal[org1peer-api.127-0-0-1.nip.io:8080] - org1peer-api.127-0-0-1.nip.io:8080 timed out after: 30000
2022-02-21T16:00:07.565Z - error: [Endorser]: sendProposal[org1peer-api.127-0-0-1.nip.io:8080] - rejecting with: Error: REQUEST TIMEOUT
2022-02-21T16:00:07.569Z - error: [DiscoveryHandler]: _build_endorse_group_member >> G0:0 - error on endorsement to org1peer-api.127-0-0-1.nip.io:8080 error Error: REQUEST TIMEOUT
at Timeout._onTimeout (/home/sahip/development/bcapplication/node_modules/fabric-common/lib/Endorser.js:142:26)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7) {
connection: [Object],
peer: 'org1peer-api.127-0-0-1.nip.io:8080'
}
Please find the client code below;
for (let k = 0; k < 2550000; k++) {
bigdata = bigdata + 'orkun.gedik|This is a test record;';
}
bigdata = bigdata + '*';
console.info('Submitting data...');
let response = await contract.submitTransaction('CreateAsset', bigdata, bigdata);
console.log(JSON.parse(response.toString()));
How can increase timeout value?
Thank you for your co-operation.
Saygılarımla/Best regards/Mit freundlichen Grüßen,
Ahmet Orkun Gedik
Sap Basis İzmir Yönetici Takım Lideri / SAP Basis Executive Team Leader
Sap Basis İzmir Yönetici Takım Liderliği
|
KoçSistem
Bilgi ve İletişim Hizmetleri A.Ş.
T: +90 (232) 242 0699
M:+90 (549) 742 3219
|

|

|

|

|

|

|

Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
|
|
Re: Tampering CouchDB manually
Thank you David. I’ll check it
toggle quoted message
Show quoted text
From: David Enyeart <enyeart@...>
Sent: Monday, February 21, 2022 8:47 AM
To: Ahmet Orkun Gedik <orkun.gedik@...>; fabric@...
Subject: Re: [Hyperledger Fabric] Tampering CouchDB manually
Starting in v2.3, you can take a snapshot of a peer’s state and compare it with other peers to verify the data integrity across peers. See the snapshot doc topic:
https://hyperledger-fabric.readthedocs.io/en/latest/peer_ledger_snapshot.html#using-snapshots-to-verify-peer-integrity
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
|
This message came from outside your organization.
|
|
|
ZjQcmQRYFpfptBannerEnd
Hi,
Is there any way to figure out CouchDB has been tampered manually by using Fauxton interface or some other way, through JS? This is because I am planning to alert user if a record has been deleted manually from database.
Thank you for your co-operation.
Saygılarımla/Best regards/Mit freundlichen Grüßen,
Ahmet Orkun Gedik
Sap Basis İzmir Yönetici Takım Lideri / SAP Basis Executive Team Leader
Sap Basis İzmir Yönetici Takım Liderliği
|
KoçSistem
Bilgi ve İletişim Hizmetleri A.Ş.
T: +90 (232) 242 0699
M:+90 (549) 742 3219
|

|

|

|

|

|

|

Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen
e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus
sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez.
This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making
any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason.
This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
|
|
Re: Tampering CouchDB manually
Starting in v2.3, you can take a snapshot of a peer’s state and compare it with other peers to verify the data integrity across peers. See the snapshot doc topic:
https://hyperledger-fabric.readthedocs.io/en/latest/peer_ledger_snapshot.html#using-snapshots-to-verify-peer-integrity
From:
<fabric@...> on behalf of Ahmet Orkun Gedik <orkun.gedik@...>
Date: Sunday, February 20, 2022 at 2:11 PM
To: "fabric@..." <fabric@...>
Subject: [EXTERNAL] [Hyperledger Fabric] Tampering CouchDB manually
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
|
This message came from outside your organization.
|
|
|
ZjQcmQRYFpfptBannerEnd
Hi,
Is there any way to figure out CouchDB has been tampered manually by using Fauxton interface or some other way, through JS? This is because I am planning to alert user if a record has been deleted manually from database.
Thank you for your co-operation.
Saygılarımla/Best regards/Mit freundlichen Grüßen,
Ahmet Orkun Gedik
Sap Basis İzmir Yönetici Takım Lideri / SAP Basis Executive Team Leader
Sap Basis İzmir Yönetici Takım Liderliği
|
KoçSistem
Bilgi ve İletişim Hizmetleri A.Ş.
T: +90 (232) 242 0699
M:+90 (549) 742 3219
|

|

|

|

|

|

|

Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda
lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus
sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez.
This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making
any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason.
This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
|
|
Tampering CouchDB manually
Hi,
Is there any way to figure out CouchDB has been tampered manually by using Fauxton interface or some other way, through JS? This is because I am planning to alert user if a record has been deleted manually from database.
Thank you for your co-operation.
Saygılarımla/Best regards/Mit freundlichen Grüßen,
Ahmet Orkun Gedik
Sap Basis İzmir Yönetici Takım Lideri / SAP Basis Executive Team Leader
Sap Basis İzmir Yönetici Takım Liderliği
|
KoçSistem
Bilgi ve İletişim Hizmetleri A.Ş.
T: +90 (232) 242 0699
M:+90 (549) 742 3219
|

|

|

|

|

|

|

Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
|
|
Hyperledger fabric Training
Emanuel Mhagama <emanuelmhagama@...>
Hello, my name is Emanuel Mhagama from Tanzania. I am a software developer. I have followed the tutorial on hyperledger fabric and I would like to arrange for an instructor-led training session for me and my colleagues so as to get a deeper understanding and possibly have hands-on sessions on the same. We aim to deploy a hyperledger network on multiple physical machines and for that we need more training. I would appreciate it if you could point me to the right direction of getting this done. Thanks in advance.
|
|
Re: Deploying test-network on AWS ECS
Thanks David,
Unfortunately the link you shared is very high level and only talks about the results obtained from their tests. My problem is with deploying such an instance itself, hope you or others can guide me in that direction
|
|
Re: Deploying test-network on AWS ECS

David F. D. Reis
Look at this article:
Regards.
David Em dom., 20 de fev. de 2022 13:28, < mohitbt@...> escreveu:
toggle quoted message
Show quoted text
Hello all,
I want to run some experiments for a custom chaincode I have developed. I am able to run a network (2peers/1orderer, using the fabric-samples/test-network) locally on a machine with the chaincode. After that, I use Caliper to benchmark the throughput/latency. Everything works well locally and I am able to obtain the caliper benchmark report. Now, I want to test it in a "real" setting. I want to deploy each peer as their own EC2 instance and then run Caliper on the network of EC2 instances. Does anyone know what is the best way forward? I looked at using the AWS ECS service as they have 1-to-1 mapping for the docker-compose.yml file used for deployment. However, setting the tls and crypto material is challenging task. Any tutorials or documentation you all can point to?
Thanks
|
|
Deploying test-network on AWS ECS
Hello all,
I want to run some experiments for a custom chaincode I have developed. I am able to run a network (2peers/1orderer, using the fabric-samples/test-network) locally on a machine with the chaincode. After that, I use Caliper to benchmark the throughput/latency. Everything works well locally and I am able to obtain the caliper benchmark report. Now, I want to test it in a "real" setting. I want to deploy each peer as their own EC2 instance and then run Caliper on the network of EC2 instances. Does anyone know what is the best way forward? I looked at using the AWS ECS service as they have 1-to-1 mapping for the docker-compose.yml file used for deployment. However, setting the tls and crypto material is challenging task. Any tutorials or documentation you all can point to?
Thanks
|
|
Re: Missing number of transactions on CouchDB
Hi David,
I am fine
J I hope that you are fine too.
I found my mistake. The problem is assigning timestamp value as a key without containing milisecond value in chaincode. This is not
returning any kind of error but face with key constraint. Therefore can only be created only one record at a second
J
Thank you and best regards,
Orkun
toggle quoted message
Show quoted text
From: David Faulstich <davidfdr@...>
Sent: Sunday, February 20, 2022 3:03 AM
To: Ahmet Orkun Gedik <orkun.gedik@...>
Cc: fabric@...
Subject: Re: [Hyperledger Fabric] Missing number of transactions on CouchDB
Hello Ahmet, how are you?
Could you provide more information such as your chaincode algorithm of 'instantiate' function, how are you getting the connection to the network / building the gateway and what are you expecting to see on couchdb?
Are you trying to create a new asset for each iteration? Or updating?
The 100 runs finish all ok without errors?
If you are trying to update the same asset for each run, you may get MVCC errors if you use "DefaultEventHandlerStrategies.NONE''
You may try to create a shell script and do 100 calls using the "peer chaincode invoke" command with and without --waitForEvent parameter to test it.
Em sáb., 19 de fev. de 2022 às 20:24, Ahmet Orkun Gedik <orkun.gedik@...> escreveu:
Hi,
I am running my test application over IBM local blockchain test network by using VScode on a Windows machine. The problem is there some missing records after I executed js code.
For example system execute submitTransaction method for 100 times, but I see ~26 records over CouchDB. Numbers are changing for each execute, but something around 25 records. I expect 100 records on CouchDB. Please find the code below;
for (let
i =
0;
i <
100;
i++) {
console.log('Counter:
' +
i);
let
response =
await contract.submitTransaction('instantiate',
'orkun.gedik',
'This is a test message');
console.log(JSON.parse(response.toString()));
}
What may caused this problem?
Thank you for your co-operation.
Saygılarımla/Best regards/Mit freundlichen Grüßen,
Ahmet Orkun Gedik
Sap Basis İzmir Yönetici Takım Lideri / SAP Basis Executive Team Leader
Sap Basis İzmir Yönetici Takım Liderliği
|
KoçSistem
Bilgi ve İletişim Hizmetleri A.Ş.
T: +90 (232) 242 0699
M:+90 (549) 742 3219
|

|

|

|

|

|

|

Gizlilik Sınıflandırması : HİZMETE ÖZEL
Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen
e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus
sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez.
This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making
any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason.
This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
--
Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
|
|
Re: Missing number of transactions on CouchDB

David F. D. Reis
Hello Ahmet, how are you?
Could you provide more information such as your chaincode algorithm of 'instantiate' function, how are you getting the connection to the network / building the gateway and what are you expecting to see on couchdb?
Are you trying to create a new asset for each iteration? Or updating?
The 100 runs finish all ok without errors?
If you are trying to update the same asset for each run, you may get MVCC errors if you use "DefaultEventHandlerStrategies.NONE''
You may try to create a shell script and do 100 calls using the "peer chaincode invoke" command with and without --waitForEvent parameter to test it.
Best regards.
David
Em sáb., 19 de fev. de 2022 às 20:24, Ahmet Orkun Gedik < orkun.gedik@...> escreveu:
toggle quoted message
Show quoted text
Hi,
I am running my test application over IBM local blockchain test network by using VScode on a Windows machine. The problem is there some missing records after I executed js code. For example system execute submitTransaction method for 100
times, but I see ~26 records over CouchDB. Numbers are changing for each execute, but something around 25 records. I expect 100 records on CouchDB. Please find the code below;
for (let
i =
0;
i <
100;
i++) {
console.log('Counter:
' +
i);
let
response =
await contract.submitTransaction('instantiate',
'orkun.gedik',
'This is a test message');
console.log(JSON.parse(response.toString()));
}
What may caused this problem?
Thank you for your co-operation.
Saygılarımla/Best regards/Mit freundlichen Grüßen,
Ahmet Orkun Gedik
Sap Basis İzmir Yönetici Takım Lideri / SAP Basis Executive Team Leader
Sap Basis İzmir Yönetici Takım Liderliği
|
KoçSistem
Bilgi ve İletişim Hizmetleri A.Ş.
T: +90 (232) 242 0699
M:+90 (549) 742 3219
|

|

|

|

|

|

|

Gizlilik Sınıflandırması : HİZMETE ÖZEL
Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
|
|
Missing number of transactions on CouchDB
Hi,
I am running my test application over IBM local blockchain test network by using VScode on a Windows machine. The problem is there some missing records after I executed js code. For example system execute submitTransaction method for 100
times, but I see ~26 records over CouchDB. Numbers are changing for each execute, but something around 25 records. I expect 100 records on CouchDB. Please find the code below;
for (let
i =
0;
i <
100;
i++) {
console.log('Counter:
' +
i);
let
response =
await contract.submitTransaction('instantiate',
'orkun.gedik',
'This is a test message');
console.log(JSON.parse(response.toString()));
}
What may caused this problem?
Thank you for your co-operation.
Saygılarımla/Best regards/Mit freundlichen Grüßen,
Ahmet Orkun Gedik
Sap Basis İzmir Yönetici Takım Lideri / SAP Basis Executive Team Leader
Sap Basis İzmir Yönetici Takım Liderliği
|
KoçSistem
Bilgi ve İletişim Hizmetleri A.Ş.
T: +90 (232) 242 0699
M:+90 (549) 742 3219
|

|

|

|

|

|

|

Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz. Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however, sender cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
|
|
Re: Customize the Dev-peer containers
Hello;
So there are two options you can pursue here.
- In the core.yaml you can configure the docker image that is used as the base for these containers. For example the Node chaincode as it’s fabric-nodeenv
image defined in the fabric-chaincode-node github repo. If you wanted to use a different version of node then you could configure this.
Downside is that you have to make sure that to the peer the image looks the same and is started the same way, and has the same scripts etc… it’s best to check the current dockerfiles to get an idea - Use the chaincode-as-a-service feature. Here the peer doesn’t orchestrate the building of the docker image. You tell the peer where your chaincode
is running (host/port/tls etc) then you can run the chaincode in what ever docker container or other way you like.. You’ve full control
There is a third option – configure your own external builder to do something completely different. However I would suggest option (2) for ease; it fits in quite well with K8S as well.
Cheers Matthew
toggle quoted message
Show quoted text
From: fabric@... <fabric@...>
On Behalf Of mohitbt@...
Sent: 18 February 2022 01:52
To: fabric@...
Subject: [EXTERNAL] [Hyperledger Fabric] Customize the Dev-peer containers
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
|
This message came from outside your organization.
|
|
|
ZjQcmQRYFpfptBannerEnd
Hey all,
I am using Fabric v2.2 for a project of mine and I notice when I install a chaincode in the channel, hyperledger creates a new docker container (dev-peer0.example1.CHAINCODE_NAME). I wanted to know if there was anyway I can customize the image used for this
and prevent it from using the base fabric peer image. I want to do so because the other peers in the network (non-dev peers) are running a custom docker container (built on top of the base peer container).
Thanks!
|
|

Josh Horton
11:00 EST today February 18.
|
|
Customize the Dev-peer containers
Hey all,
I am using Fabric v2.2 for a project of mine and I notice when I install a chaincode in the channel, hyperledger creates a new docker container (dev-peer0.example1.CHAINCODE_NAME). I wanted to know if there was anyway I can customize the image used for this and prevent it from using the base fabric peer image. I want to do so because the other peers in the network (non-dev peers) are running a custom docker container (built on top of the base peer container).
Thanks!
|
|
Re: External chaincode implementation
Hello,
Please read the tutorial mentioned by Matthew,
In addition if needed, you can follow the below tutorial:
Thanks & Regards Kavin Arumugam On Thu, Feb 17, 2022 at 10:12 PM Matthew White < whitemat@...> wrote:
Hello;
The external chaincode – and specifically the external chaincode-as-a-service is a very valuable feature, and makes deployment into a cloud environment so much easier.
The latest Peer packaging, includes a pre-packaged core.yaml that points to a set of pre-packaged external builders. I would strongly suggest to look at the `deployCCAAS.sh` script – and specifically
read this tutorial here https://github.com/hyperledger/fabric-samples/blob/main/test-network/CHAINCODE_AS_A_SERVICE_TUTORIAL.md
(aside we do need to move that into the docs).
Thanks Matthew
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
|
This message came from outside your organization.
|
|
|
ZjQcmQRYFpfptBannerEnd
hello,
I was trying to implement an external chaincode.But got the following errors.
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: dock
er build failed: platform builder failed: Failed to generate a Dockerfile: Unknown chaincodeType: EXTERNAL
Adding core.yaml and docker-compose file along with this
I have executed
chmod 777 -R bin/
on building scripts
|
|