web-dev-qa-db-ja.com

Hyperledger Fabricを使用してチャネルを作成しようとすると、リクエストが失敗する

Hyperledger Fabricを使用してチャネルを作成しようとすると、リクエストが失敗し、次のエラーが返されます。

クライアントログ:

エラー:予期しないステータスを取得しました:BAD_REQUEST-新しいチャネル 'testchannel'のチャネル作成トランザクションの検証中にエラーが発生しました。テンプレート設定に更新を正常に適用できませんでした:更新の承認エラー:DeltaSetの検証中にエラー:[Group]/Channel/Applicationのポリシーが満たされていません:暗黙のポリシー評価に失敗しました-0個のサブポリシーが満たされましたが、このポリシーでは「管理者」サブポリシーの1つが満たされる必要があります

4
Pam A

UTC [orderer.common.broadcast] ProcessMessage-> WARN 009 [channel:orgchannel]エラーのため172.20.20.22:45668からの構成メッセージのブロードキャストを拒否:新しいチャネル 'orgchannel'のチャネル作成トランザクションの検証中にエラーが発生し、更新を正常に適用できませんでしたテンプレート設定へ:エラーの更新の更新:DeltaSetの検証エラー:[グループ]/Channel/Applicationのポリシーが満たされていない:暗黙のポリシー評価に失敗しました-0のサブポリシーは満たされましたが、このポリシーには1つの「管理者」サブポリシーが必要です満足すること

前述のエラーが発生する場合は、configtxファイルを確認して、以下の属性を確認してください。以下のセクションをコピーして貼り付け、機能セクションを置き換えます。

機能:#チャネル機能は注文者とピアの両方に適用され、両方でサポートされる必要があります。 #機能の値をtrueに設定して、それを要求します。チャネル:&ChannelCapabilities#チャネルのV1.4.3は、v1.4.3レベルで実行されているすべての注文者とピアに#望ましいと判断された動作のキャッチオールフラグですが、#以前のリリースの注文者とピアとは互換性がありません。 。 #V1.4.3チャネル機能を有効にする前に、チャネル上のすべての#注文者とピアがv1.4.3以降であることを確認してください。 V1_4_3:true#チャネルのV1.3は、後方互換性のない新しい機能とファブリックv1.3の修正を有効にします#V1_3:false#チャネルのV1.1は、後方非互換の新しい機能と#ファブリックv1.1の修正を有効にしますV1_1:false

# Orderer capabilities apply only to the orderers, and may be safely
# used with prior release peers.
# Set the value of the capability to true to require it.
Orderer: &OrdererCapabilities
    # V1.4.2 for Orderer is a catchall flag for behavior which has been
    # determined to be desired for all orderers running at the v1.4.2
    # level, but which would be incompatible with orderers from prior releases.
    # Prior to enabling V1.4.2 orderer capabilities, ensure that all
    # orderers on a channel are at v1.4.2 or later.
    V1_4_2: true
    # V1.1 for Orderer enables the new non-backwards compatible
    # features and fixes of fabric v1.1
    V1_1: false

# Application capabilities apply only to the peer network, and may be safely
# used with prior release orderers.
# Set the value of the capability to true to require it.
Application: &ApplicationCapabilities
    # V1.4.2 for Application enables the new non-backwards compatible
    # features and fixes of fabric v1.4.2.
    V1_4_2: true
    # V1.3 for Application enables the new non-backwards compatible
    # features and fixes of fabric v1.3.
    V1_3: false
    # V1.2 for Application enables the new non-backwards compatible
    # features and fixes of fabric v1.2 (note, this need not be set if
    # later version capabilities are set)
    V1_2: false
    # V1.1 for Application enables the new non-backwards compatible
    # features and fixes of fabric v1.1 (note, this need not be set if
    # later version capabilities are set).
    V1_1: false

チャンネル名も確認してください

export SYS_CHANNEL=orgchannel#独自のシステムチャネル名にする必要がありますexport CHANNEL_NAME=org1orgchannel#独自のシステムチャネル名にする必要がありますexport CHANNEL_ID=org1orgchannel#独自のシステムチャネル名にする必要があります

また、SYS_CHANNELの値はCHANNEL_NAMEとは異なる必要があることに注意してください。 CHANNEL_NAMEとCHANNEL_IDは同じである必要があります。

それでも問題が発生する場合は、actachieverepeat @ gmail.comにメールを送ってください。

0
KamalM