Re: Submitting transaction from a different peer (peer0.org2): Failed


Nikhil Gupta
 

Ran the script today and see the command in my logs:

+ jq -s '.[0] * {"channel_group":{"groups":{"Application":{"groups": {"Org3MSP":.[1]}}}}}' config.json ./organizations/peerOrganizations/org3.example.com/org3.json

On Wed, Oct 7, 2020 at 6:34 AM kamlesh nagware <kamlesh.nagware@...> wrote:
Okay Thanks for letting know fabric community.

Could you please create JIRA & Pull request to get added this command in the script.

Thanks & Regards,

Kamlesh Nagware,

Blockchain Consultant

Email-kamlesh.nagware@...

Mobile:- +91 9511 2213 01

Linkedin-https://www.linkedin.com/in/kamlesh-nagware-1456094b

Twitter -@KNagware

On Wed, Oct 7, 2020, 4:00 PM Tien Nguyen Huy <huynt.it@...> wrote:
This issue is resolved. 
The function createConfigUpdate in https://github.com/hyperledger/fabric-samples/blob/master/test-network/scripts/org3-scripts/step1org3.sh misses the command:
jq -s '.[0] * {"channel_group":{"groups":{"Application":{"groups": {"Org3MSP":.[1]}}}}}' config.json ./organizations/peerOrganizations/org3.example.com/org3.json > modified_config.json

On Mon, Oct 5, 2020 at 6:49 PM Tien Nguyen Huy via lists.hyperledger.org <huynt.it=gmail.com@...> wrote:
No, I use addOrg3 scripts, env vars were set in function signConfigtxAsPeerOrg in https://github.com/hyperledger/fabric-samples/blob/master/test-network/scripts/org3-scripts/step1org3.sh


Sent from my Mobile


-------- Original Message --------
Subject: Re: [Hyperledger Fabric] Submitting transaction from a different peer (peer0.org2): Failed
From: Kamlesh Nagware
To: fabric@...
CC:


yes, I mean the same. 

see here , before running command from second org , you not pointing to second org env varibales.

Signing config transaction
   
  + peer channel signconfigtx -f org3_update_in_envelope.pb
  2020-10-05 10:31:47.090 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
  + peer channel signconfigtx -f org3_update_in_envelope.pb
  2020-10-05 10:31:47.134 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
   
  ========= Submitting transaction from a different peer (peer0.org2) which also signs it =========
   
  + peer channel update -f org3_update_in_envelope.pb -c mychannel -o orderer.example.com:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
  2020-10-05 10:31:47.180 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
  Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Application/Org3MSP/MSP not satisfied: signature set did not satisfy policy
 


--

Thanks & Regards,

Kamlesh Nagware

VP Blockchain

Snapper Future Tech

Mobile : +91 9511 2213 01

Web: http://www.snapperfuturetech.com/



--
Nguyễn Tiến Huy

Mobile: 84-1674861626
Email: huynt.it@...           

Join fabric@lists.hyperledger.org to automatically receive all group messages.