Re: IMP: Failed to update batch size in fabric


Anoop Vijayan <anoop@...>
 

Hi,
Without looking into the logs (i.e. I am guessing here), I think you are trying to update BatchSize?
For that you need to be a OrdererMSP (endorsed by orderer)
——————— e.g. clip ———————
CORE_PEER_LOCALMSPID="OrdererMSP"

CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/users/Admin@example.com/msp

ORDERER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
——————— e.g. clip ———————

To know more, you should turn on DEBUG for orderer container and restart it.

Thanks,
 - Anoop

On 11 Jan 2020, at 21.49, Suhan Sumeet <suhan.premilu@...> wrote:

Hello Team,

I have an urgent requirement to fulfill and am trying to update the batch size for my network

Am following the tutorial to "Add org3 in to network" that lists out the steps to updated a channel configuration.
While running the final step to update 
" peer channel update -f batch_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com:7050 --tls --cafile $ORDERER_CA"

it fails with below error

2020-01-11 19:41:29.563 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value]  /Channel/Orderer/BatchSize not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied


Please help me out if possible urgently since I have to deliver this in another 10-12 hours.


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