linux send 失败_实例化链码,sendPeersProposal-承诺被拒绝:错误:REQUEST_TIMEOUT,Hyperledger Fabric,Linux...

求助中

联盟链超级账本智能合约

实例化链码,sendPeersProposal-承诺被拒绝:错误:REQUEST_TIMEOUT,Hyperledger Fabric,Linux649788f17101bff39e9643602f4d66a1.png10

在从Linux OS上的结构节点sdk实例化特定对等点的链码时,我从对等点收到超时错误。error: [Peer.js]: sendProposal - timed out after:90000

error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT

我能够创建频道,加入频道,使用现有设置安装链码。成功实例化对等方上的chaincode缺少什么?

我的泊坞窗撰写设置:peer0.org1.example.com:

container_name: peer0.org1.example.com

extends:

file:   base.yaml

service: peer-base

environment:

- CORE_PEER_ID=peer0.org1.example.com

- CORE_PEER_LOCALMSPID=Org1MSP

- CORE_PEER_ADDRESS=peer0.org1.example.com:7051

ports:

- 7051:7051

- 7053:7053

volumes:

- ./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/hyperledger/crypto/peer

depends_on:

- orderer.example.com

对等基数:version: '2'

services:

peer-base:

image: hyperledger/fabric-peer

environment:

- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock

# the following setting starts chaincode containers on the same

# bridge network as the peers

# https://docs.docker.com/compose/networking/

- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=artifacts_default

- CORE_LOGGING_LEVEL=DEBUG

- CORE_PEER_GOSSIP_USELEADERELECTION=true

- CORE_PEER_GOSSIP_ORGLEADER=false

# The following setting skips the gossip handshake since we are

# are not doing mutual TLS

- CORE_PEER_GOSSIP_SKIPHANDSHAKE=true

- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/crypto/peer/msp

- CORE_PEER_TLS_ENABLED=true

- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/crypto/peer/tls/server.key

- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/crypto/peer/tls/server.crt

- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/crypto/peer/tls/ca.crt

working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer

command: peer node start

volumes:

- /var/run/:/host/var/run/

对等网络配置:"org1": {

"name": "peerOrg1",

"mspid": "Org1MSP",

"ca": "https://localhost:7054",

"peers": {

"peer1": {

"requests": "grpcs://localhost:7051",

"events": "grpcs://localhost:7053",

"server-hostname": "peer0.org1.example.com",

"tls_cacerts": "../artifacts/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"

},

"peer2": {

"requests": "grpcs://localhost:7056",

"events": "grpcs://localhost:7058",

"server-hostname": "peer1.org1.example.com",

"tls_cacerts": "../artifacts/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt"

}

},

"admin": {

"key": "../artifacts/channel/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore",

"cert": "../artifacts/channel/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"

}

}

网络设置中专门涉及什么?任何可能的根本原因?

xuexxue

2020.10.27

95fa9268de11d0061c77acb40a6f985f.png1223

3037648d6a74d46918a474e105002d34.png收藏

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值