无法运行对等,因为无法初始化加密 [英] Cannot run peer because cannot init crypto

查看:347
本文介绍了无法运行对等,因为无法初始化加密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows10上运行facbar示例,请参考 http: //hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html ,但收到错误消息:

I want to run the facbar-samples on windows10,reference the http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html but get the error:

$ ./startFabric.sh
orderer.example.com is up-to-date
couchdb is up-to-date
peer0.org1.example.com is up-to-date
cli is up-to-date
2017-07-05 08:17:06.550 UTC [main] main -> ERRO 001 Cannot run peer because 
cannot init crypto, missing /etc/hyperledger/fabric/C:/Program 
Files/Git/etc/hyperledger/msp/users/Admin@org1.example.com/msp folder

我已安装的一些软件

$ npm -v
5.0.4
$ node -v
v6.11.0
$ curl -V
curl 7.54.0 (x86_64-w64-mingw32) libcurl/7.54.0 OpenSSL/1.0.2l zlib/1.2.11 
libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 
pop3s rtmp rtsp scp sftp smtp smtps telnet tftp
Features: IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz TLS-SRP HTTP2 
HTTPS-proxy Metalink

$ docker --version
Docker version 17.06.0-ce, build 02c1d87

$ docker-compose --version
docker-compose version 1.14.0, build c7bdf9e3

$ git --version
git version 2.13.1.windows.2

请帮助,谢谢.

推荐答案

这是mingw64的问题,它与文件路径混淆. 解决方案是在运行startFabric.sh之前设置以下环境变量:

This is a problem with mingw64 which is messing with the filepaths. The solution is to set the following environment variable before running startFabric.sh :

导出MSYS_NO_PATHCONV = 1

export MSYS_NO_PATHCONV=1

刚刚向结构提交了一个修复程序来为您完成此操作,因此,如果您从master分支中提取最新版本,它应该可以工作.否则,只需设置该变量即可解决您的问题.

A fix was just submitted to fabric to do that for you so if you pull the latest version from the master branch it should work. Otherwise, just set that variable and that should solve your problem.

Arnaud

这篇关于无法运行对等,因为无法初始化加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆