Hyperledger fabric node sdk deploy.js 示例失败
Hyperledger fabric node sdk deploy.js example failing
我正在按照这些说明设置 hyperledger fabric
http://hyperledger-fabric.readthedocs.io/en/latest/asset_setup.html
但是当我 运行 deploy.js
info: Returning a new winston logger with default configurations
info: [Peer.js]: Peer.const - url: grpc://localhost:8051 options grpc.ssl_target_name_override=tlsca, grpc.default_authority=tlsca
info: [Peer.js]: Peer.const - url: grpc://localhost:8055 options grpc.ssl_target_name_override=tlsca, grpc.default_authority=tlsca
info: [Peer.js]: Peer.const - url: grpc://localhost:8056 options grpc.ssl_target_name_override=tlsca, grpc.default_authority=tlsca
info: [Client.js]: Failed to load user "admin" from local key value store
info: [FabricCAClientImpl.js]: Successfully constructed Fabric CA service client: endpoint - {"protocol":"http","hostname":"localhost","port":8054}
info: [crypto_ecdsa_aes]: This class requires a CryptoKeyStore to save keys, using the store: {"opts":{"path":"/home/ubuntu/.hfc-key-store"}}
我可以使用 docker cli 但不能 node sdk
。
无法从本地键值存储加载用户 "admin"
如何存储管理员用户?
docker compose yaml 文件中的证书颁发机构服务有一个 volumes
部分,例如:
ccenv_latest:
volumes:
- ./ccenv:/opt/gopath/src/github.com/hyperledger/fabric/orderer/ccenv
ccenv_snapshot:
volumes:
- ./ccenv:/opt/gopath/src/github.com/hyperledger/fabric/orderer/ccenv
ca:
volumes:
- ./tmp/ca:/.fabric-ca
你需要确保本地路径有效,所以在上面的配置中你需要有一个 ./tmp/ccenv
和 ./tmp/ca
目录与 docker-编写yaml文件。
安装 couchdb 后修复。
docker pull couchdb
docker run -d -p 5984:5984 --name my-couchdb couchdb
我正在按照这些说明设置 hyperledger fabric
http://hyperledger-fabric.readthedocs.io/en/latest/asset_setup.html
但是当我 运行 deploy.js
info: Returning a new winston logger with default configurations
info: [Peer.js]: Peer.const - url: grpc://localhost:8051 options grpc.ssl_target_name_override=tlsca, grpc.default_authority=tlsca
info: [Peer.js]: Peer.const - url: grpc://localhost:8055 options grpc.ssl_target_name_override=tlsca, grpc.default_authority=tlsca
info: [Peer.js]: Peer.const - url: grpc://localhost:8056 options grpc.ssl_target_name_override=tlsca, grpc.default_authority=tlsca
info: [Client.js]: Failed to load user "admin" from local key value store
info: [FabricCAClientImpl.js]: Successfully constructed Fabric CA service client: endpoint - {"protocol":"http","hostname":"localhost","port":8054}
info: [crypto_ecdsa_aes]: This class requires a CryptoKeyStore to save keys, using the store: {"opts":{"path":"/home/ubuntu/.hfc-key-store"}}
我可以使用 docker cli 但不能 node sdk
。
无法从本地键值存储加载用户 "admin" 如何存储管理员用户?
docker compose yaml 文件中的证书颁发机构服务有一个 volumes
部分,例如:
ccenv_latest:
volumes:
- ./ccenv:/opt/gopath/src/github.com/hyperledger/fabric/orderer/ccenv
ccenv_snapshot:
volumes:
- ./ccenv:/opt/gopath/src/github.com/hyperledger/fabric/orderer/ccenv
ca:
volumes:
- ./tmp/ca:/.fabric-ca
你需要确保本地路径有效,所以在上面的配置中你需要有一个 ./tmp/ccenv
和 ./tmp/ca
目录与 docker-编写yaml文件。
安装 couchdb 后修复。
docker pull couchdb
docker run -d -p 5984:5984 --name my-couchdb couchdb