Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

500 - failed to invoke backing implementation of 'InstallChaincode'

オープン
#247 コメント 2 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
docker, go
領域
cli, devops

調査の方向性

Contract deployment tutorial から始め、go mod vendor、go build、peer lifecycle chaincode package を含む asset-transfer-basic/chaincode-go のコマンドを再現します。ff deploy fabric のエントリポイントと、protobuf build error を報告する Docker ベースの peer lifecycle インストールを調査します。サンプル chaincode が 500 エラーなしで正常にインストールできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The error occurs when executing the implantation process described in: Contract deployment.

$ export GOPATH="/opt/go-fabric/go"
$ export GIT_USER_ID="pssilva"
$ mkdir -p $GOPATH/src/github.com/$GIT_USER_ID
$ cd $GOPATH/src/github.com/$GIT_USER_ID
$ git clone https://github.com/hyperledger/firefly-samples.git
$ cd $GOPATH/src/github.com/$GIT_USER_ID/firefly-samples
$ cd asset-transfer-basic/chaincode-go
$ go mod vendor
$ go build 
$ bin/peer lifecycle chaincode package -p . --label asset_transfer ./asset_transfer.zip 
$ ff deploy fabric acmecorp-erp asset_transfer.zip firefly asset_transfer 1.0
Error: docker run --platform linux/amd64 --rm --network=acmecorp-erp_default 

-e CORE_PEER_ADDRESS=fabric_peer:7051 
-e CORE_PEER_TLS_ENABLED=true 
-e CORE_PEER_TLS_ROOTCERT_FILE=/etc/firefly/organizations/peerOrganizations/org1.example.com/peers/fabric_peer.org1.example.com/tls/ca.crt 
-e CORE_PEER_LOCALMSPID=Org1MSP 
-e CORE_PEER_MSPCONFIGPATH=/etc/firefly/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp 
-v /opt/go-fabric/go/src/github.com/pssilva/fabric-samples/asset-transfer-basic/chaincode-go/asset_transfer.zip:/package.tar.gz 
-v acmecorp-erp_firefly_fabric:/etc/firefly hyperledger/fabric-tools:2.3 
peer lifecycle chaincode install /package.tar.gz 

[1] Error: chaincode install failed with status: 
  500 - failed to invoke backing implementation of 'InstallChaincode': 
    could not build chaincode: docker build failed: 
      docker image build failed: 
        docker build failed: Error returned from build: 2 "google.golang.org/protobuf/internal/flags
主要言語
Go
スター
66
フォーク
64
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hyperledger-firefly/cli のほかの issue

hyperledger-firefly/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。