错误:错误的提案响应 500:无法从创世块创建分类帐:LedgerID 已存在

问题描述 投票:0回答:1

fabric的测试网络有问题。

命令:

./network.sh createChannel

问题

Channel 'mychannel' created
Joining org1 peer to the channel...
Using organization 1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
2024-07-22 21:23:52.879 CST 0001 INFO [channelCmd] InitCmdFactory -> Endorser and orderer connections initialized
Error: proposal failed (err: bad proposal response 500: cannot create ledger from genesis block: LedgerID already exists)
After 5 attempts, peer0.org1 has failed to join channel 'mychannel'

已创建频道“mychannel” 正在加入 org1 对等通道... 正在加入 org2 对等频道...

hyperledger-fabric hyperledger fabric
1个回答
0
投票

这有时可能是由 Docker 环境中先前创建的对等容器的状态(卷)引起的。在重新创建网络之前,您可以尝试按照此问题评论中所述清除 Docker 环境:

  1. ./network.sh down
  2. docker system prune --volumes

在某些环境中,当

up
createChannel
命令组合在
./network.sh
脚本的单次调用中时,我遇到了类似的错误,这些错误似乎是由计时问题引起的。对我来说,这是通过单独运行每个命令来解决的。然而,从你的问题描述来看,你似乎已经在这样做了。

© www.soinside.com 2019 - 2024. All rights reserved.