Blockchain - Virtual box is set up and error while executing Hyperledger example from github

+1 vote

 While trying out the sample example from  https://github.com/ksachdeva/hyperledger-fabric-example I got the following error:

$ ./Example/bin/Example Hello world! starting [Ljava.lang.String;@3feba861 

Mar 15, 2018 6:27:13 PM example.Example main INFO: starting 

Mar 15, 2018 6:27:14 PM io.grpc.internal.TransportSet$1 call INFO: Created transport io.grpc.netty.NettyClientTransport@5e639e5d(/127.0.0.1:7051) for /127.0.0.1:7051 

Mar 15, 2018 6:27:15 PM io.grpc.internal.TransportSet$TransportListener transportShutdown INFO: Transport io.grpc.netty.NettyClientTransport@5e639e5d(/127.0.0.1:7051) for /127.0.0.1:7051 is being shutdown 

Mar 15, 2018 6:27:15 PM io.grpc.internal.TransportSet$TransportListener transportTerminated INFO: Transport io.grpc.netty.NettyClientTransport@5e639e5d(/127.0.0.1:7051) for /127.0.0.1:7051 is terminated 

Mar 15, 2018 6:27:15 PM io.netty.handler.codec.http2.Http2ConnectionHandler processGoAwayWriteResult WARNING: [id: 0x41d45f4a] Sending GOAWAY failed: lastStreamId '0', errorCode '2', debugData 'Connection refused: /127.0.0.1:7051'. Forcing shutdown of the connection. java.nio.channels.ClosedChannelException

Mar 15, 2018 6:27:15 PM org.hyperledger.java.shim.ChaincodeBase$1 onError SEVERE: Unable to connect to peer server: UNAVAILABLE: Transport closed for unknown reason


Can anyone help me out on this?

Mar 27, 2018 in Blockchain by ned_crew
• 1,610 points
870 views

1 answer to this question.

+1 vote
Best answer
The challenge you are facing is mostly because of TLS communication error between grpc-java client to golang server.  

I think it was a problem with the handshake failing because of the version mismatch between different components. I had used a specific version of the grpc and protobuf to make it work. You can take a look at this commit hyperledger/fabric@d39194c

The "Broken pipe" could be ignored. The transport was being disconnected for other reasons. Based on the code linked, it appears overrideAuthority() was necessary, which makes sense and is "normal" in many situations. Doesn't seem there is any bug here.
answered Mar 27, 2018 by Gabriel
• 680 points

selected Aug 3, 2018 by Omkar

Related Questions In Blockchain

+1 vote
2 answers

Hyperledger - Can I have some instances on one network while on a Virtual Box?

Yes, you can connect multiple instances to ...READ MORE

answered Aug 1, 2018 in Blockchain by Omkar
• 69,210 points
713 views
0 votes
1 answer
+1 vote
2 answers

Challenge while setting up Hyperledger Fabric 1.0 in Ubuntu 16.04

The rocksdb error you're seeing wouldn't be ...READ MORE

answered Mar 27, 2018 in Blockchain by ned_crew
• 1,610 points

edited Jun 8, 2020 by Sirajul 932 views
+1 vote
1 answer

What are the differences between the hyperledger and Blockchain?

To answer your first query.. Blockchain is ...READ MORE

answered Apr 5, 2018 in Blockchain by anonymous
3,951 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,241 views
+1 vote
1 answer

Hyperledger - How can I use transaction certificates to enforce privacy?

The transaction certificates don't actually address privacy ...READ MORE

answered Apr 17, 2018 in Blockchain by Perry
• 17,100 points
679 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP