Open nimaafraz opened 9 months ago
Looks like you are trying to run caliper 5.0 against a very old set of caliper-benchmarks. As the error says you are using a network configuration file at version 1.0 (probably from that old set of caliper-benchmarks) and that format of the network configuration file is no supported by caliper, so caliper 5.0 will not work. You could try an older version of caliper but be aware that help cannot be provided for older versions of caliper or caliper-benchmarks
Thanks @davidkel, Is there a new version of Caliper-Benchmarks? I'm using v0.4.0 of https://github.com/hyperledger/caliper-benchmarks.Also, I tried with calliper 0.4.0 and ran into the same issue.
BEst,
@nimaafraz the main branch works with caliper 5.0, but the whole mechanism of setting up fabric networks has been removed as this is not something that caliper wanted to try to maintain or encourage even given the complexity required to create a fabric network. It's best left to Hyperledger Fabric or the various projects that all try to setup a fabric network. With Caliper now and the benchmarks, they expect a fabric network to already exist and you need to build your own network configuration file. Caliper benchmarks does include a sample one that should work with the fabric test network from fabric samples but that is it. A network configuration file for fabric pretty much now just consists of
Which Caliper version are you using?
0.5.0
Which Node.JS version are you using?
V16
Which operating system are you using?
Ubuntu 22
Please provide some context for your error. For example, when did the error occur? What were you trying to achieve, and how?
Hi, I seem to be getting the following error regardless on NPM installation or the Docker Image of Caliper: Error while performing "test" step: Error: Network configuration version 1.0 is not supported anymore, please use version 2 caliper | at CaliperEngine.connectorFactory [as adapterFactory] (/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-cli/node_modules/@hyperledger/caliper-fabric/lib/FabricConnectorFactory.js:125:15) caliper | at CaliperEngine.run (/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-core/lib/manager/caliper-engine.js:109:64) caliper | at processTicksAndRejections (internal/process/task_queues.js:95:5) caliper | at async Function.handler (/home/node/.npm-global/lib/node_modules/@hyperledger/caliper-cli/lib/launch/lib/launchManager.js:62:30)
What was the observed incorrect behavior?
Error while performing "test" step: Error
Please provide the error logs and their surroundings.
Please provide your benchmark configuration file content, if possible.
No response
Please provide your network configuration file content, if possible.
No response
Please provide your workload module content, if possible.
No response
Please provide any additional information you deem relevant to the error.
No response