【发布时间】:2018-06-13 21:47:47
【问题描述】:
我正在尝试在 Hyperledger Fabric 中使用我的第一个网络。使用以下文档http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html
我已经完成了设置直到http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel,但是当我运行时
peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
我收到以下错误:
错误:出现意外状态:BAD_REQUEST
为了解决问题,我遵循First network in hyperledger 给出的解决方案,但在运行时遇到错误
/bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; sleep $TIMEOUT'
我使用
关闭了我的网络./bfyn.sh -m down
并启动给我以下错误的网络:
错误:对于 orderer.example.com 无法启动服务 orderer.example.com:oci 运行时错误:container_linux.go:265:启动容器进程导致“process_ linux.go:368: 容器初始化导致 \"rootfs_linux.go:57: 挂载 \\"/c/Users/lenovo/fabric-samples/first-network/channel-artifacts/genesis.block\\" 到 rootfs \\ "/mnt/sda1/var/lib/docker/aufs/mnt/16c8954b277dec9a00370bdaa4316db282759b3dd6892ffc25f860a4c9e06d58\\" at\"/mnt/sda1/var/lib/docker/aufs/mnt/16c8954b277dec9a00370bdaa4316db282759b3dd6892ffc25f860a4c9e06d58/var/hyperledger/orderer/orderer.genesis. block\\" 导致 \\"not a directory\\"\"":您是否尝试将目录挂载到文件上(反之亦然)?检查指定的主机路径是否存在并且是预期的类型 ERROR: Encountered启动项目时出错。 错误 !!!!无法启动网络 来自守护进程的错误响应:没有这样的容器:cli
【问题讨论】:
-
我的操作系统也是windows
-
@christo4ferris 我确实检查了那个问题,即使我完全遵循了 Windows Extra 并且我的 git config 变量按上述设置,它也没有解决方案
标签: blockchain hyperledger-fabric