fabric故障汇总与解决⽅案
阿⾥云的服务器启动会报错如下:
Error: error getting endorser client for channel: endorser client failed to connect 1.example:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: 1.example: no such host"peer
<1 failed to join the channel, Retry after 3 seconds
解决如下:
vim /usr/local/go/src/github/hyperledger/fabric-samples/first-network/base/docker-compose-base.yaml
在每个environment下⾯都追加下⾯的参数,然后重新up就搞定。
- GODEBUG=netdns=go
WARNING: The COMPOSE_PROJECT_NAME variable is not set. Defaulting to a blank string.
WARNING: The IMAGE_TAG variable is not set. Defaulting to a blank string.
ERROR: no such image: hyperledger/fabric-orderer:: invalid reference format
解决⽅法:把orderer⽣成证书⽬录重新全部拷贝到peer节点再启动成功。
1、Error: got unexpected status: FORBIDDEN -- implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied
或者:
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1
解决办法:fabric版本和证书配置⽂件不⼀致
2、Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating DeltaSet: policy for [Group]
/
Channel/Application not satisfied: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining
解决办法:这个问题是由于配置⽂件指定的⾓⾊和hosts下的IP对应有误
还有peer配置⽂件中services和cli下⾯的参数对应的组织要⼀致
- CORE_PEER_LOCALMSPID=Org2MSP
Failed validating bootstrap block: initializing channelconfig failed: could not create channel Orderer sub-group config: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority
问题3和问题4的解决⽅法⼀致:
1、停⽌orderer程序
2、删除first下⾯的证书⽬录(crypto-config)
3、重新执⾏下⾯步骤:
.
/bin/cryptogen generate --config=./crypto-config.yaml
./bin/configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
./bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./ -channelID mychannel
4、scp 到各peer节点
Error: failed to create deliver client: orderer client failed to connect ample:7050: failed to create new connection: context deadline exceeded
解决⽅法:重启orderer的docker不⾏的话就把orderer⼯作⽬录重新替换掉peer节点。
Error: Bad response: 500 - error installing chaincode code mycc:1.0(chaincode
/var/hyperledger/production/chaincodes/mycc.1.0 exists)
解决⽅法:拉取源码fabric链码go⽂件
服务器没连上外⽹
问题7:
ServerHandshake -> ERRO 025 TLS handshake failed with error tls: oversized record received with length
解决⽅法:修改配置⽂件参数:
- ORDERER_GENERAL_TLS_ENABLED=true(orderer)
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论