2017-06-15 20 views
0

チャネルを作成して参加しましたが、CLI経由でテストチェーンコードをインストールできませんでした。私がAlpha2を使用しているときは成功しました。CLI経由でチェーンコードをインストールできない

私はCLIで次のエラーメッセージがあります

[email protected]:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode install -n mycc -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 2017-06-13 08:09:17.401 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts: no such file or directory] 2017-06-13 08:09:17.401 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/crls: no such file or directory] 2017-06-13 08:09:17.401 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp/config.yaml: no such file or directory] 2017-06-13 08:09:17.424 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 2017-06-13 08:09:17.424 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 2017-06-13 08:09:17.425 UTC [golang-platform] getCodeFromFS -> DEBU 006 getCodeFromFS github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error obtaining imports: go list: failed with error: "exec: not started"

 
Usage: 
    peer chaincode install [flags] 

Global Flags: 
     --cafile string    Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint 
    -C, --chainID string    The chain on which this command should be executed (default "testchainid") 
    -c, --ctor string    Constructor message for the chaincode in JSON format (default "{}") 
    -E, --escc string    The name of the endorsement system chaincode to be used for this chaincode 
    -l, --lang string    Language the chaincode is written in (default "golang") 
     --logging-level string  Default logging level and overrides, see core.yaml for full syntax 
    -n, --name string    Name of the chaincode 
    -o, --orderer string    Ordering service endpoint 
    -p, --path string    Path to chaincode 
    -P, --policy string    The endorsement policy associated to this chaincode 
     --test.coverprofile string Done (default "coverage.cov") 
    -t, --tid string     Name of a custom ID generation algorithm (hashing and decoding) e.g. sha256base64 
     --tls      Use TLS when communicating with the orderer endpoint 
    -u, --username string   Username for chaincode operations when security is enabled 
    -v, --version string    Version of the chaincode specified in install/instantiate/upgrade commands 
    -V, --vscc string    The name of the verification system chaincode to be used for this chaincode 

[email protected]:/opt/gopath/src/github.com/hyperledger/fabric/peer# 

答えて

1

問題はあなたがもはやCLIとしてピア・コンテナーを使用することはできませんということです。代わりにファブリックツールコンテナを使用する必要があります。

ここにファイルを構成するE2Eの変化に注意してください。https://github.com/hyperledger/fabric/blob/master/examples/e2e_cli/docker-compose-cli.yaml#L42

をFYI

を動作するはずファブリック・ツールの画像との事を試してみてください - エラーが行くコンパイラがノーであるという事実によるものですファブリックピアイメージに含まれており、CLIを使用してチェーンコードをパッケージ化するときに必要になります

関連する問題