You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to spin up the containers I get the following result.
$ docker compose up
Container caliper Created
Attaching to caliper
caliper | 2021.06.12-11:43:40.738 info [caliper] [cli-launch-manager] Binding specification is present, performing binding for "fabric:1.4.11"
caliper | 2021.06.12-11:43:40.741 warn [caliper] [bind] Working directory not specified. Using "/hyperledger/caliper/workspace"
caliper | 2021.06.12-11:43:40.741 info [caliper] [bind] User-provided arguments for npm: "-g"
caliper | 2021.06.12-11:43:40.741 info [caliper] [bind] Binding for [email protected]. This might take some time...
caliper | 2021.06.12-11:43:40.741 info [caliper] [bind] Using working directory: /hyperledger/caliper/workspace
caliper | 2021.06.12-11:43:40.742 info [caliper] [bind] Calling npm with: install -g [email protected][email protected][email protected]
npm WARN deprecated [email protected]: This library will not receive further updates other than security fixes. We recommend using @grpc/grpc-js instead.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: This library will not receive further updates other than security fixes. We recommend using @grpc/grpc-js instead.
+ [email protected]
caliper | + [email protected]
caliper | + [email protected]
caliper | updated 3 packages in 8.236s
caliper | 2021.06.12-11:43:49.383 info [caliper] [cli-launch-manager] Set workspace path: /hyperledger/caliper/workspace
caliper | 2021.06.12-11:43:49.384 info [caliper] [cli-launch-manager] Set benchmark configuration path: /hyperledger/caliper/workspace/benchmarks/samples/fabric/marbles/config.yaml
caliper | 2021.06.12-11:43:49.384 info [caliper] [cli-launch-manager] Set network configuration path: /hyperledger/caliper/workspace/networks/fabric/v1/v1.4.1/2org1peergoleveldb/fabric-go.yaml
caliper | 2021.06.12-11:43:49.384 info [caliper] [cli-launch-manager] Set SUT type: fabric
caliper | 2021.06.12-11:43:49.419 info [caliper] [benchmark-validator] No observer specified, will default to `none`
caliper | 2021.06.12-11:43:49.419 info [caliper] [caliper-engine] Starting benchmark flow
caliper | 2021.06.12-11:43:49.757 error [caliper] [cli-launch-manager] Unexpected error during benchmark execution: Error: Module "fabric-network" could not be loaded: Error: Cannot find module 'fs-extra'
caliper | Searched paths: /home/node/.npm-global/lib/node_modules/@hyperledger/caliper-core/lib/common/utils/node_modules,/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-core/lib/common/node_modules,/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-core/lib/node_modules,/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-core/node_modules,/home/node/.npm-global/lib/node_modules/@hyperledger/node_modules,/home/node/.npm-global/lib/node_modules,/home/node/.npm-global/node_modules,/home/node/node_modules,/home/node_modules,/node_modules
caliper | Usage:
caliper | caliper launch manager --caliper-bind-sut fabric:1.4 [other options]
caliper |
caliper | Options:
caliper | --help, -h Show usage information [boolean]
caliper | --version Show version information [boolean]
caliper | --caliper-bind-sut The name and version of the platform to bind to [string]
caliper | --caliper-bind-cwd The working directory for performing the SDK install [string]
caliper | --caliper-bind-args Additional arguments to pass to "npm install". Use the "=" notation when setting this parameter [string]
caliper | --caliper-bind-file Yaml file to override default (supported) package versions when binding an SDK [string]
caliper |
caliper | Error: Module "fabric-network" could not be loaded: Error: Cannot find module 'fs-extra'
caliper | Searched paths: /home/node/.npm-global/lib/node_modules/@hyperledger/caliper-core/lib/common/utils/node_modules,/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-core/lib/common/node_modules,/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-core/lib/node_modules,/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-core/node_modules,/home/node/.npm-global/lib/node_modules/@hyperledger/node_modules,/home/node/.npm-global/lib/node_modules,/home/node/.npm-global/node_modules,/home/node/node_modules,/home/node_modules,/node_modules
caliper | at Function.loadModule (/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-core/lib/common/utils/caliper-utils.js:118:19)
caliper | at Function.moduleIsInstalled (/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-core/lib/common/utils/caliper-utils.js:181:26)
caliper | at new FabricConnector (/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-cli/node_modules/@hyperledger/caliper-fabric/lib/fabric-connector.js:63:26)
caliper | at CaliperEngine.connectorFactory [as adapterFactory] (/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-cli/node_modules/@hyperledger/caliper-fabric/lib/connectorFactory.js:26:23)
caliper | at CaliperEngine.run (/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-core/lib/manager/caliper-engine.js:93:36)
caliper | at Function.handler (/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-cli/lib/launch/lib/launchManager.js:62:43)
caliper | at process._tickCallback (internal/process/next_tick.js:68:7)
caliper exited with code 1
The documentation also mentions: Note: the above network configuration file contains a start script to spin up a local Docker-based Fabric network, which will not work in this form. So make sure to remove the start (and end) script, and change the node endpoints to remote addresses.
So I am not sure if this is the expected behavior. But to me it seems I am missing something during the installation.
Possible Fix
Steps to Reproduce
Follow the documentation on installing caliper using the docker image.
This is a bug in the fabric node-sdk 1.4. They don't declare a dependency on fs-extra in their package.json and rely on it being provided by another of their dependencies, but it breaks caliper when running in a docker container. Unfortunately the node-sdk 1.4 is out of support so this will never be fixed and also fabric 1.4 is now end of life so people should really be using fabric 2.2 now. However there are a couple of options
bind to fabric:2.2. This will use the node sdk 2.2 version (gateway only so remember to specify --caliper-fabric-gateway-enabled option) but should still work with a 1.4 fabric
2 . create a custom bind file in your workspace, eg a bind.yaml file
Issue in 1.4 node sdk means that some dependencies aren't available when
binding to a 1.4 fabric sut when using the caliper docker container
closeshyperledger-caliper#1146
Signed-off-by: D <[email protected]>
Issue in 1.4 node sdk means that some dependencies aren't available when
binding to a 1.4 fabric sut when using the caliper docker container
closes#1146
Signed-off-by: D <[email protected]>
Co-authored-by: D <[email protected]>
Context
I am trying to run one of the fabric sample benchmakrs. For this I am following the documentation on how to run caliper using the docker image.
I am using the following docker-compose script:
Expected Behavior
The benchmark is running without error.
Actual Behavior
When I try to spin up the containers I get the following result.
The documentation also mentions:
Note: the above network configuration file contains a start script to spin up a local Docker-based Fabric network, which will not work in this form. So make sure to remove the start (and end) script, and change the node endpoints to remote addresses.
So I am not sure if this is the expected behavior. But to me it seems I am missing something during the installation.
Possible Fix
Steps to Reproduce
Follow the documentation on installing caliper using the docker image.
Existing issues
#374
#844
Context
Your Environment
The text was updated successfully, but these errors were encountered: