怎么解决呀。我这是复现别人的项目的,代码在他的虚拟机上能成功
我的环境



invoke function call: {"function":"initLedger","Args":[]}
+peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.njust.com --tls --cafile /home/oyz/Desktop/LGD/lgd-network/organizations/ordererOrganizations/njust.com/orderers/orderer.njust.com/msp/tlscacerts/tlsca.njust.com-cert.pem -C mychannel -n mychaincode --peerAddresses localhost:7051 --tlsRootCertFiles /home/oyz/Desktop/LGD/lgd-network/organizations/peerOrganizations/org1.njust.com/peers/peer0.org1.njust.com/tls/ca.crt --peerAddresses localhost:8051 --tlsRootCertFiles /home/oyz/Desktop/LGD/lgd-network/organizations/peerOrganizations/org2.njust.com/peers/peer0.org2.njust.com/tls/ca.crt --isInit -c '{"function":"initLedger","Args":[]}'
+res=1
Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction ce4390ff7a1443e7ceef932462529b3daeb558a82979fd44af77a5c64439ee19: could not launch chaincode mychaincode_1.0:9d1eae13a4df0f248ba9cd4a7638db6b65553db78a90ddc48b1e5b1bc5e6a3f6: chaincode registration failed: container exited with 1"
Invoke execution on peer0.org1 peer0.org2 failed
Deploying chaincode failed
