-
Notifications
You must be signed in to change notification settings - Fork 24
unable to test hyperledger/fabric-samples/first-network using this tool #40
Comments
SERVICE_UNAVAILABLE means the client couldn't connect to the Orderer. Please check the orderer was started properly and the address was correct. The address should be configured in benchmark/simple/fabric.json (if you have not changed the blockchain config file name, which is defined by blockchain.config parameter in config.json ) . I've tested the first-network before, here is some of my config for reference(I copied the /crypto-config into caliper/network/fabric/firstnetwork folder). "network": { |
what BAD_REQUEST indicates ?? node benchmark/simple/main.jsdocker-compose -f network/fabric/simplenetwork/docker-compose.yaml up -d ***** create channels ***** create mychannel......error: [Orderer.js]: sendBroadcast - reject with BAD_REQUEST
|
What's the version of your fabric images? V1.1.0-preview? |
@haojun my HLF reference version is 1.0.3, so i am using v1.0.3 fabric images. and one more question. |
@haojun, yes I enabled TLS in The first-network and also I used grpc in a configuaration but still i am facing the same error ***** create channels ***** __dirname: /opt/caliper/src/fabric: caRootsPath: network/fabric/first-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt create channel......org name: org1
|
@Souravpatnaik You can point to an existing HLF network, just remove the 'start' & 'end' object in the configuration file (config.json as default) and specify the endpoints of orderers & peers in fabric's configuration file (fabric.json as default). |
@VemiReddyN you should use grpcs since the TLS is enabled ( change all urls start with 'grpc://' to 'grpcs://') |
how and which files do i need to edit to run the benchmark test for hyperledger/fabric-samples/first-network can you please update?
i have edited caliper/benchmark/simple/config.json like below,
"command" : {
"start": "command to start the first-network test",
"end": "command to stop"
},
and when i run the test, i got error as below
#node benchmark/simple/main.js
****create channels ****
__dirname: /opt/caliper/src/fabric: caRootsPath: ./fabric-samples/first-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt
channels: before new Client creation
create channel......
org name: org1
error: [Orderer.js]: sendBroadcast - on error: "Error: Endpoint read failed\n at ClientDuplexStream._emitStatusIfDone (/opt/caliper/node_modules/grpc/src/client.js:255:19)\n at ClientDuplexStream._receiveStatus (/opt/caliper/node_modules/grpc/src/client.js:233:8)\n at /opt/caliper/node_modules/grpc/src/client.js:757:12"
not ok 1 Failed to create channels Error: SERVICE_UNAVAILABLE at ClientDuplexStream. (/opt/caliper/node_modules/fabric-client/lib/Orderer.js:128:21) at emitOne (events.js:96:13) at ClientDuplexStream.emit (events.js:188:7) at ClientDuplexStream._emitStatusIfDone (/opt/caliper/node_modules/grpc/src/client.js:258:12) at ClientDuplexStream._receiveStatus (/opt/caliper/node_modules/grpc/src/client.js:233:8) at /opt/caliper/node_modules/grpc/src/client.js:757:12
...
fabric.init() failed, Error: Fabric: Create channel failed
at channels.reduce.then.then.catch (/opt/caliper/src/fabric/create-channel.js:170:31)
at process._tickCallback (internal/process/next_tick.js:103:7)
unexpected error, Error: Fabric: Create channel failed
at channels.reduce.then.then.catch (/opt/caliper/src/fabric/create-channel.js:170:31)
at process._tickCallback (internal/process/next_tick.js:103:7)
1..1
tests 1
pass 0
fail 1
The text was updated successfully, but these errors were encountered: