./byfn.sh -m up报错
来源:2-4 fabric尝鲜

慕后端1172420
2020-12-10
Attempting to Query PEER0 …3 secs
Attempting to Query PEER0 …6 secs
Attempting to Query PEER0 …9 secs
Attempting to Query PEER0 …12 secs
Attempting to Query PEER0 …15 secs
Attempting to Query PEER0 …18 secs
Attempting to Query PEER0 …22 secs
Attempting to Query PEER0 …25 secs
Attempting to Query PEER0 …28 secs
Attempting to Query PEER0 …31 secs
Attempting to Query PEER0 …34 secs
Attempting to Query PEER0 …37 secs
Attempting to Query PEER0 …40 secs
Attempting to Query PEER0 …43 secs
Attempting to Query PEER0 …46 secs
Attempting to Query PEER0 …49 secs
Attempting to Query PEER0 …52 secs
Attempting to Query PEER0 …56 secs
Attempting to Query PEER0 …59 secs
Attempting to Query PEER0 …62 secs
2020-12-10 05:44:51.259 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src /github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/int ermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1 .example.com/users/Admin@org1.example.com/msp/intermediatecerts: no such file or directory]
2020-12-10 05:44:51.259 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hy perledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/intermediatecerts ]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/u sers/Admin@org1.example.com/msp/crls: no such file or directory]
2020-12-10 05:44:51.259 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/gi thub.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/config .yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/A dmin@org1.example.com/msp/config.yaml: no such file or directory]
2020-12-10 05:44:51.295 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2020-12-10 05:44:51.295 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2020-12-10 05:44:51.296 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0A95070A6708031A0C08D3EBC6FE0510…6D 7963631A0A0A0571756572790A0161
2020-12-10 05:44:51.296 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 2096A86D4C786C0364265973B4F85B2C36494FDD 9CAD5D39DA2E388F321B3F8B
Error: Error endorsing query: rpc error: code = Unknown desc = could not find chaincode with name ‘mycc’ - make su re the chaincode mycc has been successfully instantiated and try again -
Usage:
peer chaincode query [flags]
Flags:
-x, --hex If true, output the query value byte array in hexadecimal. Incompatible with --raw
-r, --raw If true, output the query value as raw bytes, otherwise format as a printable string
Global Flags:
–cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering end point
-C, --chainID string The chain on which this command should be executed (default “testchainid”)
-c, --ctor string Constructor message for the chaincode in JSON format (default “{}”)
-E, --escc string The name of the endorsement system chaincode to be used for this chaincode
-l, --lang string Language the chaincode is written in (default “golang”)
–logging-level string Default logging level and overrides, see core.yaml for full syntax
-n, --name string Name of the chaincode
-o, --orderer string Ordering service endpoint
-p, --path string Path to chaincode
-P, --policy string The endorsement policy associated to this chaincode
–test.coverprofile string Done (default “coverage.cov”)
-t, --tid string Name of a custom ID generation algorithm (hashing and decoding) e.g. sha256base 64
–tls Use TLS when communicating with the orderer endpoint
-u, --username string Username for chaincode operations when security is enabled
-v, --version string Version of the chaincode specified in install/instantiate/upgrade commands
-V, --vscc string The name of the verification system chaincode to be used for this chaincode
!!! Query result on PEER0 is INVALID !!!
================== ERROR !!! FAILED to execute End-2-End Scenario ==================
- 清理过docker镜像和缓存,也重新下载过,但是依然报错…主要是什么问题造成的呢?
1回答
-
自游蜗牛
2020-12-10
没有提前生成证书
012020-12-22
相似问题