Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'getChannel' of undefined at Fabric._joinChannels #755

Closed
3 tasks
usnmas opened this issue Mar 4, 2020 · 2 comments
Closed
3 tasks
Labels
wontfix This will not be worked on

Comments

@usnmas
Copy link

usnmas commented Mar 4, 2020

When I run caliper benchmark, I get an error as below:

$ npx caliper benchmark run --caliper-workspace . --caliper-benchconfig mydir/benchmark_config.yaml --caliper-networkconfig mydir/network_config.yaml
Benchmark for target Blockchain type fabric about to start
2020.03.04-14:05:22.820 info [caliper] [adapters/fabric] Using defined file wallet path /home/guest/GitHub/mepoc1/client/wallet
2020.03.04-14:05:22.822 info [caliper] [benchmark-validator] No observer specified, will default to none
2020.03.04-14:05:22.822 info [caliper] [caliper-flow] ####### Caliper Test #######
2020.03.04-14:05:22.824 info [caliper] [null-observer] Configured observer
2020.03.04-14:05:22.826 info [caliper] [adapters/fabric] Fabric SDK version: 1.4.4; TLS: server
2020.03.04-14:05:22.826 info [caliper] [adapters/fabric] skipping registrar initialisation due to presence of file system wallet
2020.03.04-14:05:22.837 info [caliper] [adapters/fabric] No admin.Org1 found in wallet - unable to perform admin options
2020.03.04-14:05:22.840 info [caliper] [adapters/fabric] Retriving credentials for admin from wallet
2020.03.04-14:05:23.015 info [caliper] [adapters/fabric] admin's materials are successfully loaded
2020.03.04-14:05:23.015 info [caliper] [adapters/fabric] Channel 'mychannel' is configured as created, skipping creation
2020.03.04-14:05:23.016 error [caliper] [caliper-flow] Error: TypeError: Cannot read property 'getChannel' of undefined
at Fabric._joinChannels (/home/guest/GitHub/caliper-benchmarks/node_modules/@hyperledger/caliper-fabric/lib/fabric.js:1468:43)
at Fabric.init (/home/guest/GitHub/caliper-benchmarks/node_modules/@hyperledger/caliper-fabric/lib/fabric.js:2320:24)
Benchmark failure
Error: Benchmark failure
at Function.handler (/home/guest/GitHub/caliper-benchmarks/node_modules/@hyperledger/caliper-cli/lib/benchmark/lib/runBenchmark.js:70:23)
Command failed

Context

I run 2 peers and 1 orderer, and have created mychannel already.
The 'network_config.yaml' says for the 'channels' key :

channels:
mychannel:
created: true
orderers:
- orderer.example.com
peers:
peer0.org1.example.com:
eventSource: true
peer1.org1.example.com:
eventSource: true
chaincodes:
- id: mycc
version: v1.0
language: golang
path: /home/guest/GitHub/chaincode/newcc

Expected Behavior

Actual Behavior

Possible Fix

Steps to Reproduce

  1. npx caliper bind --caliper-bind-sut fabric --caliper-bind-sdk 1.4.4
  2. npx caliper benchmark run --caliper-workspace . --caliper-benchconfig mydir/benchmark_config.yaml --caliper-networkconfig mydir/network_config.yaml

Existing issues

Context

Your Environment

  • Version used: Caliper v0.2.0
  • Environment name and version (e.g. Chrome 39, node.js 5.4): Fabric v1.4.4 / node.js v10.17.0
  • Operating System and version (desktop or mobile): Ubuntu 18.04.3 LTS
  • Link to your project:
@stale
Copy link

stale bot commented Apr 3, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 3, 2020
@usnmas usnmas closed this as completed Apr 4, 2020
@Youssef-Alaa
Copy link

I have the same issue, any solutions came up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants