ハイパーレジャー キャリパーを使用してノコギリ 1.0.0 をベンチマーク中にエラーが発生しました (エラー: ベンチマークはエラー コード 6 で失敗しました)

okwaves2024-01-25  8

ハイパーレジャー キャリパーを使用して sawtooth 1.0.0 のベンチマークを実行しようとしていますが、launch master コマンドの実行中に次のエラーが発生します:

Error: Benchmark failed with error code 6
    at Function.handler (/home/zee/Desktop/caliper-benchmarks/node_modules/@hyperledger/caliper-cli/lib/launch/lib/launchMaster.js:70:23)

コマンドの完全な結果:

zee@pro:~/caliper-benchmarks$sudo npx キャリパー起動マスター --caliper-bind-sut sawtooth :1.0.0 -w 。 --caliper-benchconfig ベンチマーク/シナリオ/smallbank/config.yaml --caliper-networkconfig ネットワーク/sawtooth/smallbank/sawtooth.json

zee@pro:~/caliper-benchmarks$ sudo npx caliper launch master --caliper-bind-sut sawtooth:1.0.0 -w . --caliper-benchconfig benchmarks/scenario/smallbank/config.yaml --caliper-networkconfig networks/sawtooth/smallbank/sawtooth.json
    [sudo] password for zee: 
    2020.09.05-02:31:38.751 info  [caliper] [cli-launch-master]     Binding specification is present, performing binding for "sawtooth:1.0.0"
    2020.09.05-02:31:38.757 warn  [caliper] [bind]  Working directory not specified. Using "/home/zee/Desktop/caliper-benchmarks"
    2020.09.05-02:31:38.758 info  [caliper] [bind]  Binding for [email protected]. This might take some time...
    2020.09.05-02:31:38.758 info  [caliper] [bind]  Using working directory: /home/zee/Desktop/caliper-benchmarks
    2020.09.05-02:31:38.758 info  [caliper] [bind]  Calling npm with: install [email protected]
    + [email protected]
    updated 1 package and audited 450 packages in 21.476s

6 packages are looking for funding
  run `npm fund` for details

found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
2020.09.05-02:32:08.925 info  [caliper] [cli-launch-master]     Set workspace path: /home/zee/Desktop/caliper-benchmarks
2020.09.05-02:32:08.926 info  [caliper] [cli-launch-master]     Set benchmark configuration path: /home/zee/Desktop/caliper-benchmarks/benchmarks/scenario/smallbank/config.yaml
2020.09.05-02:32:08.926 info  [caliper] [cli-launch-master]     Set network configuration path: /home/zee/Desktop/caliper-benchmarks/networks/sawtooth/smallbank/sawtooth.json
2020.09.05-02:32:08.926 info  [caliper] [cli-launch-master]     Set SUT type: sawtooth:1.0.0
2020.09.05-02:32:11.350 info  [caliper] [benchmark-validator]   No observer specified, will default to `none`
2020.09.05-02:32:11.350 info  [caliper] [caliper-engine]    Starting benchmark flow
2020.09.05-02:32:11.351 info  [caliper] [caliper-utils]     Executing command: cd ./; docker-compose -f networks/sawtooth/smallbank/sawtooth-smallbank-go.yaml up -d
Creating network "smallbank_default" with the default driver
Creating sawtooth-validator-default ... done
Creating sawtooth-rest-api-default        ... done
Creating sawtooth-settings-tp-default     ... done
Creating sawtooth-smallbank-tp-go-default ... done
2020.09.05-02:32:32.421 info  [caliper] [caliper-engine]    Executed start command in 21.07 seconds
2020.09.05-02:32:32.421 info  [caliper] [caliper-engine]    Executed "init" step in 0 seconds
2020.09.05-02:32:32.421 info  [caliper] [caliper-engine]    Executed "install" step in 0 seconds
2020.09.05-02:32:32.422 info  [caliper] [messenger.js]  Creating messenger of type "process-master" 
2020.09.05-02:32:32.724 info  [caliper] [null-observer]     Configured "null" observer
2020.09.05-02:32:32.725 error [caliper] [round-orchestrator]    Round 1 configuration validation error: Missing "callback" attribute
2020.09.05-02:32:32.726 error [caliper] [caliper-engine]    Error while performing "test" step: Error: Round 1 configuration validation error: Missing "callback" attribute
2020.09.05-02:32:32.726 info  [caliper] [caliper-utils]     Executing command: cd ./; docker-compose -f networks/sawtooth/smallbank/sawtooth-smallbank-go.yaml down;(test -z "$(docker ps -aq)") || docker rm $(docker ps -aq)
Stopping sawtooth-smallbank-tp-go-default ... done
Stopping sawtooth-settings-tp-default     ... done
Stopping sawtooth-rest-api-default        ... done
Stopping sawtooth-validator-default       ... done
Removing sawtooth-smallbank-tp-go-default ... done
Removing sawtooth-settings-tp-default     ... done
Removing sawtooth-rest-api-default        ... done
Removing sawtooth-validator-default       ... done
Removing network smallbank_default
2020.09.05-02:33:05.760 info  [caliper] [caliper-engine]    Executed end command in 33.034 seconds
2020.09.05-02:33:05.760 error [caliper] [cli-launch-master]     Benchmark failed with error code 6
Usage:
 caliper launch master --caliper-bind-sut fabric:1.4.1 [other options]

Options:
  --help, -h           Show usage information  [boolean]
  --version            Show version information  [boolean]
  --caliper-bind-sut   The name and version of the platform to bind to  [string]
  --caliper-bind-cwd   The working directory for performing the SDK install  [string]
  --caliper-bind-args  Additional arguments to pass to "npm install". Use the "=" notation when setting this parameter  [string]
  --caliper-bind-file  Yaml file to override default (supported) package versions when binding an SDK  [string]

Error: Benchmark failed with error code 6
    at Function.handler (/home/zee/Desktop/caliper-benchmarks/node_modules/@hyperledger/caliper-cli/lib/launch/lib/launchMaster.js:70:23)

そこで何が問題になっているのでしょうか?ご協力ありがとうございます。



------------------------

これはバージョンの問題だと思います。最新バージョンのキャリパーを使用してください。 olde を使用している可能性があるため、このエラーが発生しますキャリパーのRバージョン。最新バージョンのキャリパーを使用して修正しました。

共有 フォローする

2020 年 9 月 25 日 4:00 に回答

ディンプル カンワール

ディンプル カンワール

1

総合生活情報サイト - OKWAVES
総合生活情報サイト - OKWAVES
生活総合情報サイトokwaves(オールアバウト)。その道のプロ(専門家)が、日常生活をより豊かに快適にするノウハウから業界の最新動向、読み物コラムまで、多彩なコンテンツを発信。