hyperledger-labs / blockchain-explorer

Apache License 2.0
1.42k stars 949 forks source link

When I deploy with the latest image, explorer fails to start #481

Open lgy1027 opened 10 months ago

lgy1027 commented 10 months ago

What happened?

When I deploy with the latest image, explorer fails to start

What did you expect to happen?

Normal start

How can we reproduce it (as minimally and precisely as possible)?

explorer-config.yaml ` apiVersion: v1 kind: ConfigMap metadata: name: explorer-config namespace: hyperledger labels: app: explorer data: org1ProdNetworkConnection.json: | { "name": "prod-network", "version": "1.0.0", "client": { "tlsEnable": true, "adminCredential": { "id": "admin", "password": "admin" }, "enableAuthentication": true, "organization": "Org1MSP", "connection": { "timeout": { "peer": { "endorser": "300" }, "orderer": "300" } } }, "channels": { "heroschannel": { "peers": { "peer0.hyperledger.svc.cluster.local": { "endorsingPeer": true, "chaincodeQuery": true, "ledgerQuery": true, "eventSource": true } } }
}, "organizations": { "Org1MSP": { "mspid": "Org1MSP", "peers": [ "peer0.hyperledger.svc.cluster.local" ], "adminPrivateKey": { "path": "/var/hyperledger/crypto-config/peerOrganizations/hyperledger.svc.cluster.local/users/User1@hyperledger.svc.cluster.local/msp/keystore/priv_sk" }, "signedCert": { "path": "/var/hyperledger/crypto-config/peerOrganizations/hyperledger.svc.cluster.local/users/User1@hyperledger.svc.cluster.local/msp/signcerts/User1@hyperledger.svc.cluster.local-cert.pem" } } }, "peers": { "peer0.hyperledger.svc.cluster.local": { "url": "grpcs://peer0.hyperledger.svc.cluster.local:7051", "grpcOptions": { "ssl-target-name-override": "peer0.hyperledger.svc.cluster.local", "hostnameOverride": "peer0.hyperledger.svc.cluster.local", "request-timeout": 120001 }, "tlsCACerts": { "path": "/var/hyperledger/crypto-config/peerOrganizations/hyperledger.svc.cluster.local/peers/peer0.hyperledger.svc.cluster.local/tls/ca.crt" } } } }

config.json: | { "network-configs": { "prod-network": { "name": "Prod Network", "profile": "./connection-profile/org1ProdNetworkConnection.json" } }, "license": "Apache-2.0" } ` explorer-db.yaml

` apiVersion: apps/v1 kind: Deployment metadata: namespace: hyperledger name: explorer-db spec: selector: matchLabels: app: explorer-db template: metadata: labels: app: explorer-db spec: containers:

explorer.yaml

` apiVersion: apps/v1 kind: Deployment metadata: name: explorer spec: selector: matchLabels: app: explorer template: metadata: labels: app: explorer spec: containers:

apiVersion: v1 kind: Service metadata: name: explorer-service spec: selector: app: explorer ports:

Anything else we need to know?

image

OS version

Linux: Linux ecs-zhisuan-0001 4.14.0-115.el7a.0.1.aarch64 #1 SMP Sun Nov 25 20:54:21 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux