【发布时间】:2020-11-15 21:38:52
【问题描述】:
我在 Hyperledger 1.4 中的链码部署存在一个特殊问题 - 在升级链码时。
我正在使用 NODE FABRIC SDK 来安装、实例化和升级链代码。我的环境是单台机器上的 Docker 容器,每台机器有 4 个 ORG 和 2 个 PEER。
根据生命周期指南 - 在安装、实例化(升级)、调用方面,升级与新安装链代码非常相似。
安装正常 - 但在实例化时出现以下错误:
2020-11-10 14:41:39.321 UTC [core.comm] ServerHandshake -> ERRO 15a7 TLS handshake failed with error tls: client didn't provide a certificate server=ChaincodeServer remoteaddress=172.20.0.28:47086
2020-11-10 14:41:39.322 UTC [peer.chaincode.dev-peer0.xxx.local.xxx.ae-agmaccounttransactions-v5] func2 -> INFO 15a8 2020-11-10 14:41:39.321 UTC [shim] userChaincodeStreamGetter -> ERRO 001 Error trying to connect to local peer: remote error: tls: bad certificate
如果有人有任何线索,请告诉我。
我在对等级别的环境变量(我正在尝试实例化)。
declare -x CORE_LEDGER_STATE_STATEDATABASE="CouchDB"
declare -x CORE_LOGGING_PEER="debug"
declare -x CORE_PEER_ADDRESS="peer0.xxx.local.ubn.xx:7051"
declare -x CORE_PEER_ID="peer0.xxx.local.ubn.xx"
declare -x CORE_PEER_LOCALMSPID="DxxMSP"
declare -x CORE_PEER_MSPCONFIGPATH="/etc/hyperledger/fabric/msp"
declare -x CORE_PEER_TLS_CERT_FILE="/etc/hyperledger/fabric/msp/signcerts/peer0.xxx.local.ubn.xx-cert.pem"
declare -x CORE_PEER_TLS_CLIENTAUTHREQUIRED="false"
declare -x CORE_PEER_TLS_ENABLED="true"
declare -x CORE_PEER_TLS_KEY_FILE="/etc/hyperledger/fabric/msp/keystore/9fc50c7d9031b7e4a6432609c1ec424cd71010664e1b74442ef31c05dbd5f041_sk"
declare -x CORE_PEER_TLS_ROOTCERT_FILE="/etc/hyperledger/fabric/msp/cacerts/ca.xxx.local.ubn.xx-cert.pem"
declare -x CORE_VM_DOCKER_ATTACHSTDOUT="true"
declare -x CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE="fixtures_default"
declare -x CORE_VM_ENDPOINT="unix:///host/var/run/docker.sock"
declare -x FABRIC_CFG_PATH="/etc/hyperledger/fabric"
declare -x HOME="/root"```
【问题讨论】:
标签: hyperledger-fabric hyperledger hyperledger-chaincode