Hyperledger Fabric Explorer config.json握手错误

时间:2018-09-25 08:02:34

标签: ssl hyperledger-fabric hyperledger hyperledger-explorer

大家好,我正在使用Hyperledger Fabric网络和Blockchain Explorer。 我为“第一网络”测试了资源管理器,然后成功了。之后,因为我想构建多计算机Fabric网络,所以我参考了https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f并进行了测试,我将所有docker容器(CA,ORDERER,2PEERS,CLI)都运行到了本地计算机中,并将config.json文件编辑为下面

"network-configs": {
"network-1": {
  "version": "1.0",
  "clients": {
    "client-1": {
      "tlsEnable": true,
      "organization": "Org1MSP",
      "channel": "mychannel",
      "credentialStore": {
        "path": "./tmp/credentialStore_Org1/credential",
        "cryptoStore": {
          "path": "./tmp/credentialStore_Org1/crypto"
        }
      }
    }
  },
  "channels": {
    "mychannel": {
      "peers": {
        "peer0.org1.example.com": {},
        "peer1.org1.example.com": {}
      },
      "connection": {
        "timeout": {
          "peer": {
            "endorser": "6000",
            "eventHub": "6000",
            "eventReg": "6000"
          }
        }
      }
    }
  },
  "organizations": {
    "Org1MSP": {
      "mspid": "Org1MSP",
      "fullpath": false,
      "adminPrivateKey": {
        "path":
          "/home/ubuntu/fabric-samples/Build-Multi-Host-Network-Hyperledger/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore"
      },
      "signedCert": {
        "path":
          "/home/ubuntu/fabric-samples/Build-Multi-Host-Network-Hyperledger/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"
      }
    },
    "OrdererMSP": {
      "mspid": "OrdererMSP",
      "adminPrivateKey": {
        "path":
          "/home/ubuntu/fabric-samples/Build-Multi-Host-Network-Hyperledger/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp/keystore"
      }
    }
  },
  "peers": {
    "peer0.org1.example.com": {
      "tlsCACerts": {
        "path":
          "/home/ubuntu/fabric-samples/Build-Multi-Host-Network-Hyperledger/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
      },
      "url": "grpcs://localhost:8051",
      "eventUrl": "grpcs://localhost:8053",
      "grpcOptions": {
        "ssl-target-name-override": "peer0.org1.example.com"
      }
    },
    "peer1.org1.example.com": {
      "tlsCACerts": {
        "path":
          "/home/ubuntu/fabric-samples/Build-Multi-Host-Network-Hyperledger/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt"
      },
      "url": "grpcs://localhost:9051",
      "eventUrl": "grpcs://localhost:9053",
      "grpcOptions": {
        "ssl-target-name-override": "peer1.org1.example.com"
      }
    }
  },
  "orderers": {
    "orderer.example.com": {
      "url": "grpcs://localhost:7050"
    }
  }
},
"network-2": {}
},
"configtxgenToolPath": "/home/ubuntu/fabric-samples/bin",
"license": "Apache-2.0"
}

我得到了错误。下面有错误日志

postgres:// hppoc:password@127.0.0.1:5432 / fabricexplorer E0925 17:00:41.804738425 14014 ssl_transport_security.cc:989]握手失败,出现致命错误SSL_ERROR_SSL:错误:1408F10B:SSL例程:SSL3_GET_RECORD:版本号错误。 E0925 17:00:42.805918378 14014 ssl_transport_security.cc:989]握手失败,出现致命错误SSL_ERROR_SSL:错误:1408F10B:SSL例程:SSL3_GET_RECORD:版本号错误。 E0925 17:00:44.589563663 14014 ssl_transport_security.cc:989]握手失败,出现致命错误SSL_ERROR_SSL:错误:1408F10B:SSL例程:SSL3_GET_RECORD:版本号错误。 [31merror [39m:[Remote.js]:错误:在截止日期之前无法连接 [31merror [39m:[client-utils.js]:sendPeersProposal-承诺被拒绝:错误:在截止日期之前无法连接     在checkState(/home/ubuntu/blockchain-explorer/node_modules/grpc/src/client.js:838:16)


错误:无法连接客户端对等方,请检查配置和对等状态 信息:资源管理器将仅继续处理数据库数据


请打开网络浏览器以访问:http://localhost:8080/

pid是14014

<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Explorer >>>>>>>>>>>>>>>>>>>>>>>>>>> >> 错误:['默认客户端对等已关闭,并且没有可用的通道详细信息数据库'] E0925 17:00:46.797189353 14014 ssl_transport_security.cc:989]握手失败,出现致命错误SSL_ERROR_SSL:错误:1408F10B:SSL例程:SSL3_GET_RECORD:版本号错误。 收到终止信号,正常关闭 <<<<<<<<<<<<<<<<<<<<<<<<<<<<关闭的浏览器>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 封闭的连接

有人知道如何解决这个问题吗?

1 个答案:

答案 0 :(得分:-1)

当我尝试将Hyperledger Explorer连接到基本网络示例时,我遇到了与您发布的问题相同的问题。

我在下面的链接中找到了此帖子,它可以解决我的问题,希望它也可以为您提供帮助。

Unable to setup hyperledger explorer with one node (like basic network example)