hyperledger-labs / blockchain-explorer

Apache License 2.0
1.41k stars 941 forks source link

Not able to run hyperledger explorer #500

Open hamzaaziz1 opened 2 months ago

hamzaaziz1 commented 2 months ago

I tried running npm start command, however Im getting proxy error.

Expected Result:

image

These are my containers:

image

This is the error Im getting:

image

This is what I get on my console:

image

My docker-compose.yaml file:

SPDX-License-Identifier: Apache-2.0

version: '2.1'

volumes: pgdata: walletstore:

networks: mynetwork.com: name: fabric_test

services:

explorerdb.mynetwork.com: image: ghcr.io/hyperledger-labs/explorer-db:latest container_name: explorerdb.mynetwork.com hostname: explorerdb.mynetwork.com environment:

Following is my test-network.json:

{ "name": "test-network", "version": "1.0.0", "client": { "tlsEnable": true, "adminCredential": { "id": "exploreradmin", "password": "exploreradminpw" }, "enableAuthentication": true, "organization": "Org1MSP", "connection": { "timeout": { "peer": { "endorser": "300" }, "orderer": "300" } } }, "channels": { "mychannel": { "peers": { "peer0.org1.example.com": {} } } }, "organizations": { "Org1MSP": { "mspid": "Org1MSP", "adminPrivateKey": { "path": "/tmp/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/priv_sk" }, "peers": ["peer0.org1.example.com"], "signedCert": { "path": "/tmp/crypto/peerOrganizations/org1.example.com/users/User1@org1.example.com/msp/signcerts/User1@org1.example.com-cert.pem" } } }, "peers": { "peer0.org1.example.com": { "tlsCACerts": { "path": "/tmp/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" }, "url": "grpcs://peer0.org1.example.com:7051" } } }

DeepikaSR4 commented 1 month ago

@hamzaaziz1 Did you get this resolved?

hamzaaziz1 commented 1 month ago

@hamzaaziz1 Did you get this resolved? Yes, I just added "external: true" under networks in my docker-compose.yaml and then run "docker-compose down -v" and "docker-compose up -d"