Forum Discussion

selvaraman's avatar
selvaraman
Copper Contributor
Jul 09, 2020

How to setup hyperledger fabric explorer | Hyperledger Fabric consortium on Azure Kubernetes Service

 

I set up hyperledger fabric network by reading this document https://docs.microsoft.com/en-us/azure/blockchain/templates/hyperledger-fabric-consortium-azure-kubernetes-service. Network side everything worked properly. Now I wanted to set up hyperledger fabric explorer for this network. In order to do that, I did the follwing steps,
1. git clone https://github.com/hyperledger/blockchain-explorer.git
2. git checkout tags/v1.0.0-rc2
3. app/persistence/fabric/postgreSQL/db
4. ./createdb.sh
5. ./main.sh install
6. Replaced the connection profile (app/platform/fabric/connection-profile/first-network.json) like the following,

 

  1. {
  2. "certificateAuthorities": {
  3. "ca.xxxxxxxxxxxxx.eastus.aksapp.io": {
  4. "caName": "ca.org1",
  5. "tlsCACerts": {
  6. "pem": "-----BEGIN CERTIFICATE-----dfsajk-----END CERTIFICATE-----\n"
  7. },
  8. "url": "grpcs://ca.xxxxxxxxxxxxx.eastus.aksapp.io:443"
  9. }
  10. },
  11. "client": {
  12. "tlsEnable": true,
  13. "adminUser": "admin.org1",
  14. "adminPassword": "",
  15. "enableAuthentication": false,
  16. "connection": {
  17. "timeout": {
  18. "orderer": "300",
  19. "peer": {
  20. "endorser": "300"
  21. }
  22. }
  23. },
  24. "organization": "org1"
  25. },
  26. "channels": {
  27. "hrschannel": {
  28. "orderers": ["orderer1.yyyyyyyyyyyyyyyyyyyyy.eastus.aksapp.io"],
  29. "peers": {
  30. "peer1.xxxxxxxxxxxxx.eastus.aksapp.io": {}
  31. }
  32. }
  33. },
  34. "name": "org1",
  35. "organizations": {
  36. "org1": {
  37. "certificateAuthorities": [
  38. "org1CA"
  39. ],
  40. "mspid": "org1",
  41. "peers": [
  42. "peer1.xxxxxxxxxxxxx.eastus.aksapp.io"
  43. ]
  44. }
  45. },
  46. "peers": {
  47. "peer1.xxxxxxxxxxxxx.eastus.aksapp.io": {
  48. "grpcOptions": {
  49. "hostnameOverride": "peer1.xxxxxxxxxxxxx.eastus.aksapp.io",
  50. "ssl-target-name-override": "peer1.xxxxxxxxxxxxx.eastus.aksapp.io"
  51. },
  52. "tlsCACerts": {
  53. "pem": "-----BEGIN CERTIFICATE-----jjdadjijfifawj-----END CERTIFICATE-----\n"
  54. },
  55. "url": "grpcs://peer1.xxxxxxxxxxxxx.eastus.aksapp.io:443"
  56. }
  57. },
  58. "version": "1.0.0",
  59. "wallet": "org1"
  60. }

But I got the following error here tail -f logs/console/console-2020-07-08.log

 

  1. false 'ssl-certs' '/home/css/delete/blockchain-explorer/ssl-certs'
  2. ******* Initialization started for hyperledger fabric platform ******, { 'first-network':
  3. { name: 'first-network',
  4. profile: './connection-profile/first-network.json' } }
  5. client_configs.name first-network client_configs.profile ./connection-profile/first-network.json
  6. FabricUtils.createFabricClient
  7. config.client.tlsEnable true
  8. FabricConfig, this.config.channels hrschannel
  9. initializeChannelFromDiscover hrschannel
  10. FabricClient.discover_results endpoint { host: 'orderer1.1111111111111111111.eastus.aksapp.io',
  11. port: 443 }
  12. initializeChannelFromDiscover.discoveryProtocol grpcs requesturl grpcs://orderer1.1111111111111111111.eastus.aksapp.io:443
  13. FabricClient.discover_results endpoint { host: 'orderer2.1111111111111111111.eastus.aksapp.io',
  14. port: 443 }
  15. initializeChannelFromDiscover.discoveryProtocol grpcs requesturl grpcs://orderer2.1111111111111111111.eastus.aksapp.io:443
  16. FabricClient.discover_results endpoint { host: 'orderer3.1111111111111111111.eastus.aksapp.io',
  17. port: 443 }
  18. initializeChannelFromDiscover.discoveryProtocol grpcs requesturl grpcs://orderer3.1111111111111111111.eastus.aksapp.io:443
  19. 2020-07-08T16:15:30.879Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:443
  20. FabricUtils.createDetachClient
  21. initializeListener, client_name, client first-network { name: 'first-network',
  22. profile: './connection-profile/first-network.json' }
  23. Please open web browser to access :http://localhost:8080/
  24. pid is 13408
  25. Sync process is started for the network : [first-network] and client : [first-network]
  26. config.client.tlsEnable true
  27. FabricConfig, this.config.channels hrschannel
  28. (node:13836) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
  29. An identity for the admin user: admin.org1 already exists in the wallet
  30. initializeChannelFromDiscover hrschannel
  31. FabricClient.discover_results endpoint { host: 'orderer1.1111111111111111111.eastus.aksapp.io',
  32. port: 443 }
  33. initializeChannelFromDiscover.discoveryProtocol grpcs requesturl grpcs://orderer1.1111111111111111111.eastus.aksapp.io:443
  34. FabricClient.discover_results endpoint { host: 'orderer2.1111111111111111111.eastus.aksapp.io',
  35. port: 443 }
  36. initializeChannelFromDiscover.discoveryProtocol grpcs requesturl grpcs://orderer2.1111111111111111111.eastus.aksapp.io:443
  37. FabricClient.discover_results endpoint { host: 'orderer3.1111111111111111111.eastus.aksapp.io',
  38. port: 443 }
  39. initializeChannelFromDiscover.discoveryProtocol grpcs requesturl grpcs://orderer3.1111111111111111111.eastus.aksapp.io:443
  40. 2020-07-08T16:15:37.490Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:443
  41. SyncServices.synchNetworkConfigToDB client first-network channel_name hrschannel
  42. 2020-07-08T16:15:40.744Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:443
  43. <<<<<<<<<<<<<<<<<<<<<<<<<< Synchronizer Error >>>>>>>>>>>>>>>>>>>>>
  44. Error: Orderer with name "orderer2.1111111111111111111.eastus.aksapp.io:443" not assigned to this channel
  45. at Channel.getOrderer (/home/css/delete/blockchain-explorer/node_modules/fabric-network/node_modules/fabric-client/lib/Channel.js:928:10)
  46. at FabricClient.switchOrderer (/home/css/delete/blockchain-explorer/app/platform/fabric/FabricClient.js:681:27)
  47. at FabricClient.getGenesisBlock (/home/css/delete/blockchain-explorer/app/platform/fabric/FabricClient.js:611:26)
  48. at <anonymous>
  49. at process._tickCallback (internal/process/next_tick.js:189:7)
  50. <<<<<<<<<<<<<<<<<<<<<<<<<< Closing client processor >>>>>>>>>>>>>>>>>>>>>
  51. req.body { user: 'admin', password: 'adminpw', network: 'first-network' }
  52. Network: first-network enableAuthentication false

Please help me to fix this issue.

No RepliesBe the first to reply