hyperledger-fabric - 未找到织物样本 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 代码空间上运行它,所以这可能是问题所在?
解决方案
推荐阅读
- c - 当我在动态数组输入函数中使用 realloc 时出现分段错误(核心转储)
- ant-design-pro - 更改 Ant Design Pro 表格分页语言
- php - 加入三个不能正常工作的表Mysql
- javascript - 如何在 Nightwatch 诱惑报告中的 Test body 下添加测试步骤?
- css - 需要在css中圆边框
- javascript - Git只添加我的一个文件夹而不是所有文件夹
- c++ - 程序在调试执行过程中以状态码 0 退出
- node.js - Neo4j - Neo4jError:连接被服务器关闭
- java - 如何将 Spring Boot 应用程序连接到 Android 客户端
- java - 使 javagent 在 Java < 9 中使用系统类加载器