hyperledger-fabrichyperledger

Error: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit


I am using fabric 2.2 version and working on docker-machine. when i try to create channel by using peer channel create method through CLI, i got this error.

Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not successfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

code:

   placement:
    constraints:
     - node.labels.name == manager    environment:
 - SYS_CHANNEL=system-channel
 - GOPATH=/opt/gopath
 - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
 - FABRIC_LOGGING_SPEC=DEBUG
 - ORDERER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
 # - FABRIC_LOGGING_SPEC=INFO
 - CC_PATH=/opt/gopath/src/github.com/chaincode
 - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=test
 - CORE_PEER_ID=cli
 - CORE_PEER_ADDRESS=peer0.org1.example.com:7051
 - CORE_PEER_LOCALMSPID=Org1MSP
 - CORE_PEER_TLS_ENABLED=true
 - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
 - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
 - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
 - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp    working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer    command: /bin/bash    volumes:
 - /var/run/:/host/var/run/
 - /home/docker/hlf-docker-swarm/chaincode/:/opt/gopath/src/github.com/chaincode
 - /home/docker/hlf-docker-swarm/test-network/organizations:/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/
 - /home/docker/hlf-docker-swarm/test-network/scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/
 - /home/docker/hlf-docker-swarm/test-network/channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts    networks:
 test:
   aliases:
     - cliOrg1.example.com

error


Solution

  • You might be using incorrect certificates to sign the transaction. Your certificates and the artifacts are not matching. My suggestion is to delete the docker volume and regenerate the certs and artifacts (genesis block and channel transaction)