本文介绍了Azure Hyperledger Fabric单成员区块链设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用Azure托管多节点Hyperledger网络.我以前一直在本地环境上运行,但想使用Azure.我已经部署了"Hyperledger Fabric单成员区块链"模板,该模板创建了五个VM(一个用于CA,订购者和三个对等方).我的本地环境使用CLI,但这似乎不在Azure模板中.在没有CLI的情况下如何与区块链网络进行交互?

I'm starting to use Azure to host a multi node Hyperledger network. I've previously been running on a local environment, but would like to use Azure. I've deployed the 'Hyperledger Fabric Single Member Blockchain' template, which creates five VM's (one each for a CA, orderer and three peers). My local environment uses a CLI, but this doesn't seem to be in the Azure template. How do i interact with the blockchain network without the CLI?

设置后如何使用部署的环境?

Are there any tuturials for how to use the deployed environment after its been setup?

我已经通过SSH托管了托管对等方的所有三个VM,所有Docker容器似乎都出现了错误,该容器已通过部署Azure模板自动设置.运行'docker ps'表明他们正在重新启动,并且我无法使用命令docker exec -it bash进行连接(我收到一条错误消息,指出它正在重新启动).例如:

I've SSH'd to all of the three VM's that are hosting the peers, there seems to be an error with the docker container that has been automatically setup by deploying the Azure template. Running 'docker ps' shows that they are restarting reguarly, and i can't connect using the command docker exec -it bash (i get an error saying that its restarting). Eg:

容器ID图像命令创建的状态端口名称817bbb256e5b hyperledger/fabric-peer:x86_64-1.0.0-alpha"peer node start -..." 7小时前重新启动(2)6秒前sad_clarke

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES817bbb256e5b hyperledger/fabric-peer:x86_64-1.0.0-alpha "peer node start -..." 7 hours ago Restarting (2) 6 seconds ago sad_clarke

任何人都可以使用Hyperledger Fabric单成员区块链模板吗?

Does anyone have the Hyperledger Fabric Single Member Blockchain template working?

谢谢保罗

推荐答案

要与Azure上的Hyperledger进行交互,您确实可以使用ssh进入其中一台VM.到达那里后,您可以使用docker exec -it <container-name> bash在该VM(ca,peer或orderer)上运行的docker映像中获得提示.您可以在其中发出命令.

To interact with Hyperledger on Azure, you may indeed ssh into one of the VMs. Once there, you can use docker exec -it <container-name> bash to get a prompt in the the docker image running on that VM (ca, peer or orderer). In there you can issue commands.

我在重新引导VM之后遇到了您提到的docker重新启动错误(但在部署后没有立即出现).我相信MS部署脚本中存在错误. configure-fabric-azureuser.sh使用cacert="/etc/hyperledger/fabric-ca-server-config/${PEER_ORG_DOMAIN}-cert.pem",但是在替换为cacert="/etc/hyperledger/fabric-ca-server-config/ ca .${PEER_ORG_DOMAIN}-cert.pem"之后,我有关Docker映像重启或运行Hyperledger Composer教程的所有问题都消失了.我在 https://github.com/fabienpe/azure-hyperledger-artifacts

I got the docker restarting error you mentioned after rebooting the VMs (but not immediately after deployment). I believe there is a bug in the MS deployment script. The configure-fabric-azureuser.sh uses cacert="/etc/hyperledger/fabric-ca-server-config/${PEER_ORG_DOMAIN}-cert.pem" but after replacing with cacert="/etc/hyperledger/fabric-ca-server-config/ca.${PEER_ORG_DOMAIN}-cert.pem" all my problems with docker image restarting or running Hyperledger Composer tutorial were gone. I posted a fix on https://github.com/fabienpe/azure-hyperledger-artifacts

您是否已检查每个VM上的config.log文件?

Have you checked the config.log files on each VM?

这篇关于Azure Hyperledger Fabric单成员区块链设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 02:07