简体   繁体   English

超级账本结构调用注册端点失败并出现错误

[英]hyperledger fabric calling enrollment endpoint failed with error

I was trying to deploy hyperledger fabric on multiple hosts using this code and used the balance transfer chaincode using node-SDK.我试图使用代码在多个主机上部署超级账本结构,并使用 node-SDK 使用余额转移链代码。 While I tried to enroll the user, I got the following error:当我尝试注册用户时,出现以下错误:

[2019-01-10 18:12:20.635] [ERROR] Helper - 
[FabricCAClientService.js]: Failed to enroll admin, error:Error: 
Calling enrollment endpoint failed with error [Error: write EPROTO 
140678895621952:error:140770FC:SSL 
routines:SSL23_GET_SERVER_HELLO:unknown 
protocol:../deps/openssl/openssl/ssl/s23_clnt.c:827:
]
at ClientRequest.request.on (/home/muzzam/Downloads/hlf-docker-swarm/hlf-app/node_modules/fabric-ca-client/lib/FabricCAClient.js:492:12)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at TLSSocket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at onwriteError (_stream_writable.js:417:12)
at onwrite (_stream_writable.js:439:5)
at _destroy (internal/streams/destroy.js:39:7)
at TLSSocket.Socket._destroy (net.js:568:3)

can anyone give me an idea of what could be going wrong?任何人都可以让我知道可能出了什么问题吗? If you need any of my configuration file, i can provide that如果您需要我的任何配置文件,我可以提供

I was able to find my error.我能够找到我的错误。 I was not setting the TLS enabled parameter in docker containing CA service.我没有在包含 CA 服务的 docker 中设置 TLS 启用参数。

You need to set the following properties in yaml file containg the CA services:您需要在包含 CA 服务的 yaml 文件中设置以下属性:

environment:
    - FABRIC_CA_SERVER_TLS_ENABLED=true
    - FABRIC_CA_SERVER_TLS_CERTFILE=<location to certificate file>
    - FABRIC_CA_SERVER_TLS_KEYFILE=<location to key file>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未能成功调用错误 eventthub 出现问题错误:14 UNAVAILABLE: Connect Failed --while invoking in hyperledger fabric - Failed to invoke successfully Error There was a problem with the eventhub Error: 14 UNAVAILABLE: Connect Failed --while invoking in hyperledger fabric Hyperledger Fabric 1.2功能错误 - Hyperledger fabric 1.2 capabilities error 关于通过在 Hyperledger Fabric 中注册为 Nodejs 客户端创建的管理员/用户身份 - Regarding admin/user identities created for Nodejs Client via Enrollment in Hyperledger Fabric Hyperledger Fabric:-来自尝试的对等通信的响应是一个错误:错误:在截止日期之前无法连接 - Hyperledger Fabric :- Response from attempted peer comms was an error: Error: Failed to connect before the deadline Hyperledger-fabric-node 错误:14 不可用:无法连接到所有地址 - Hyperledger-fabric-node Error: 14 UNAVAILABLE: failed to connect to all addresses Hyperledger Fabric 2.3 错误:无法在 Endorser-name 的截止日期前连接: - Hyperledger Fabric 2.3 Error: Failed to connect before the deadline on Endorser- name: Hyperledger Fabric 2.0.1:错误:无法在发现者名称的截止日期前连接: - Hyperledger Fabric 2.0.1: Error: Failed to connect before the deadline on Discoverer- name: 调用注册端点失败,出现错误 [错误:自签名证书] - Calling register endpoint failed with error [Error: self signed certificate] enrolladmin.js的Hyperledger Fabric Fabcar错误 - Hyperledger Fabric Fabcar error for enrolladmin.js CentOS上的Hyperledger Fabric 1.0是否支持链码错误? - Hyperledger Fabric 1.0 on CentOS Error endorsing chaincode?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM