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

node main.js fail due to grpc #122

Closed
VemiReddyN opened this issue Dec 11, 2017 · 2 comments
Closed

node main.js fail due to grpc #122

VemiReddyN opened this issue Dec 11, 2017 · 2 comments

Comments

@VemiReddyN
Copy link

VemiReddyN commented Dec 11, 2017

I am trying to test blockchain benchmark using caliper tool but i faced create channel error due to grpc fail

#node main.js

__dirname: /opt/caliper/src/fabric: caRootsPath: network/fabric/first-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt
channels: before new Client creation
# create channel......
org name1: org1
org name5: org1
org name5: org1
channel is success1
E1211 19:39:24.820579917  106870 ssl_transport_security.c:970] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed.
error: [Orderer.js]: sendBroadcast - on error: "Error: Connect Failed\n    at ClientDuplexStream._emitStatusIfDone (/opt/caliper/node_modules/grpc/src/client.js:255:19)\n    at ClientDuplexStream._readsDone (/opt/caliper/node_modules/grpc/src/client.js:221:8)\n    at readCallback (/opt/caliper/node_modules/grpc/src/client.js:283:12)"
channel is success2
not ok 1 Failed to create channels Error: SERVICE_UNAVAILABLE at ClientDuplexStream.<anonymous> (/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._readsDone (/opt/caliper/node_modules/grpc/src/client.js:221:8) at readCallback (/opt/caliper/node_modules/grpc/src/client.js:283:12)
  ---
    operator: fail
    at: channels.reduce.then.then.catch (/opt/caliper/src/fabric/create-channel.js:171:19)
    stack: |-
      Error: Failed to create channels Error: SERVICE_UNAVAILABLE
          at ClientDuplexStream.<anonymous> (/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._readsDone (/opt/caliper/node_modules/grpc/src/client.js:221:8)
          at readCallback (/opt/caliper/node_modules/grpc/src/client.js:283:12)
          at Test.assert [as _assert] (/opt/caliper/node_modules/tape/lib/test.js:212:54)
          at Test.bound [as _assert] (/opt/caliper/node_modules/tape/lib/test.js:64:32)
          at Test.fail (/opt/caliper/node_modules/tape/lib/test.js:277:10)
          at Test.bound [as fail] (/opt/caliper/node_modules/tape/lib/test.js:64:32)
          at channels.reduce.then.then.catch (/opt/caliper/src/fabric/create-channel.js:171:19)
          at process._tickCallback (internal/process/next_tick.js:103:7)
  ...
fabric.init() failed, Error: Fabric: Create channel failed
    at channels.reduce.then.then.catch (/opt/caliper/src/fabric/create-channel.js:173: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:173:31)
    at process._tickCallback (internal/process/next_tick.js:103:7)

1..1
# tests 1
# pass  0
# fail  1
@nicolasnoble
Copy link
Member

Sorry, I just noticed this one here. The error says fairly explicitely that there was a problem with your SSL certificate. Do you have more information on the certificate that could help understanding why the verification failed ?

@nicolasnoble
Copy link
Member

No updates in more than a month, closing.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants