Error committing chaincode to network with 4 orgs #fabric-chaincode


Hi all, 

We're trying to deploy our chaincode to the test-network with 4 orgs in it. Following the "Deploy a smart contract to channel" tutorial, we got each org to approve the chaincode definition as confirmed in the following:

$ peer lifecycle chaincode checkcommitreadiness --channelID mychannel --name material_prov --version 1.0 --sequence 1 --tls --cafile "${PWD}/organizations/ordererOrganizations/" --output json

        "approvals": {
                "Org1MSP": true,
                "Org2MSP": true,
                "Org3MSP": true,
                "Org4MSP": true

However, when we try committing the chaincode to the channel, we get an error showing that the chaincode definition is not approved by the org that's currently running the command:

$ peer lifecycle chaincode commit -o localhost:7050 --ordererTLSHostnameOverride --channelID mychannel --name material_prov_0 --version 1.0 --sequence 1 --tls --cafile "${PWD}/organizations/ordererOrganizations/" --peerAddresses localhost:7051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/" --peerAddresses localhost:9051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/" --peerAddresses localhost:11051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/" --peerAddresses localhost:13051 --tlsRootCertFiles "${PWD}/organizations/peerOrganizations/"
Error: proposal failed with status: 500 - failed to invoke backing implementation of 'CommitChaincodeDefinition': chaincode definition not agreed to by this org (Org1MSP)

We tried adding a signature policy as mentioned in this post but got the same result. We're running peer version 2.4.2 on macOS11.1 through docker. We added the 3rd and 4th org following the "Adding an org to a channel" tutorial. Any insight would be appreciated. Thanks!

Join to automatically receive all group messages.