首页 > 解决方案 > 未找到织物样本 couchdb 示例的配置文件核心

问题描述

我正在关注 couchdb 教程并被困在这里: https ://hyperledger-fabric.readthedocs.io/en/latest/couchdb_tutorial.html#run-the-query-using-the-peer-command

codespace ➜ /workspaces/CLOUD_WEB_Blo-my_Byzantium/fabric-samples/test-network (main) $ ../bin/peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" -C mychannel -n ledger -c '{"Args":["CreateAsset","asset1","blue","5","tom","35"]}'

> 2021-09-26 09:44:20.345 UTC [main] InitCmd -> ERRO 001 Fatal error
> when initializing core config : error when reading core config file:
> Config File "core" Not Found in
> "[/workspaces/CLOUD_WEB_Blo-my_Byzantium/fabric-samples/test-network]"

这是我得到的错误。当我将 core.yaml 复制到 ./test-network 文件夹时,我收到另一个错误:

codespace ➜ /workspaces/CLOUD_WEB_Blo-my_Byzantium/fabric-samples/test-network (hyperledger-demo ✗) $ peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" -C mychannel -n ledger -c '{"Args":["CreateAsset","asset1","blue","5","tom","35"]}'
"Error: error getting endorser client for invoke: endorser client failed to connect to localhost:7051: failed to create new connection: context deadline exceeded

我从头开始学习本教程,我唯一不确定该怎么做是https://hyperledger-fabric.readthedocs.io/en/latest/couchdb_tutorial.html#enable-couchdb-in-hyperledger-fabric, 这部分。所以这一定是我做错的地方。我在这里什么都没做,因为我不明白。

如果有帮助,我会在 GitHub 代码空间上运行它,所以这可能是问题所在?

标签: hyperledger-fabric

解决方案


推荐阅读