请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

请教老师,启动first-network错误,如何解决?

Querying chaincode on org1/peer0…
===================== Querying on PEER0 on channel ‘happy’… =====================
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_PEER_TLS_ENABLED=true
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_ID=cli
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
Attempting to Query PEER0 …3 secs
Attempting to Query PEER0 …33 secs
Attempting to Query PEER0 …36 secs
Attempting to Query PEER0 …39 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-03-06 07:32:50.782 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable
2020-03-06 07:32:50.832 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable
100
!!! Query result on PEER0 is INVALID !!!
================== ERROR !!! FAILED to execute End-2-End Scenario ==================

docker pull hyperledger/fabric-peer:x86_64-1.0.0
docker pull hyperledger/fabric-tools:x86_64-1.0.0
docker pull hyperledger/fabric-orderer:x86_64-1.0.0
docker pull hyperledger/fabric-baseos:x86_64-0.3.1

hyperledger/fabric-tools x86_64-1.0.0 0403fd1c72c7 2 years ago 1.32GB

hyperledger/fabric-orderer x86_64-1.0.0 e317ca5638ba 2 years ago 179MB

hyperledger/fabric-peer x86_64-1.0.0 6830dcd7b9b5 2 years ago 182MB

hyperledger/fabric-baseos x86_64-0.3.1 4b0cab202084 2 years ago 157MB

这些是我下载的镜像,老师

正在回答 回答被采纳积分+3

2回答

自游蜗牛 2020-04-04 00:45:30

020-03-06 07:32:50.782 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable


这句日志意味着你用的不是1.0的镜像。


100
!!! Query result on PEER0 is INVALID !!! 

这说明网络是ok的,能够查出数据。但是跟你shell脚本中设置对比的值不一致。


可以从脚本中看看前后的逻辑哈,例子比较简单,是加减法。

0 回复 有任何疑惑可以回复我~
自游蜗牛 2020-03-09 11:56:07

你确认你启动网络的时候是用的你pull下来的镜像吗?看日志的输出不是1.0应该有的日志。你的fabric-samples切换版本了吗?高版本的默认启动的不是1.0

0 回复 有任何疑惑可以回复我~
  • 提问者 qq_码_0 #1
    这是我本地下载的镜像
    回复 有任何疑惑可以回复我~ 2020-03-31 19:58:22
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信