Error: Error endorsing chaincode: rpc error: code = 2 desc = Error installing chaincode code test_cc

Error: Error endorsing chaincode: rpc error: code = 2 desc = Error installing chaincode code test_ cc:1.0(chaincode /var/hyperledger/production/chaincodes/test_ cc.1.0 exits)

The storage location of chain code in peer is/var/hyperledger/production/chaincodes. After installing a chain code, you can delete the chain code here and deploy it again. In addition, what is stored in the/var/hyperledger/production/ledgersdata directory is the ledger data/var/hyperledger/production/ledgersdata/chains/chains/triangle channel

Read More: