Cannot start peer because it cannot initialize crypto

I want to run facbar samples on windows 10, reference http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html , but get an 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

which I installed:

$ 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

Please help, thanks.

+1
source share
5 answers

This is a problem with mingw64 that messes with file paths. The solution is to set the following environment variable before starting startFabric.sh:

export MSYS_NO_PATHCONV = 1

, , , , . .

+2

// . , docker exec . MSPCONFIGPATH =// .. /hyperledger....

,

+1

( Windows /fabric /etc) / ../hyperledger//C:/ProgramFiles/ Git/etc/hyperledger/msp/users/Admin@org1.example.com/msp

:

  • docker peer
  • docker-compose -f "path_to_file"
  • startFabric.sh peer cli.
  • node query.js .
0

- , :

" docker peer section

What certificate?

@Vlad

0
source

All Articles