Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to connect before the deadline on ondorser #12

Open
kareemkemoo95 opened this issue Sep 10, 2024 · 0 comments
Open

failed to connect before the deadline on ondorser #12

kareemkemoo95 opened this issue Sep 10, 2024 · 0 comments

Comments

@kareemkemoo95
Copy link

kareemkemoo95 commented Sep 10, 2024

issue during integrate explorer with network.

360986774-fc6c7fb2-ca1b-4219-be52-b6c5a0cfded6

explorer

###content of explorer docker-compose file :
SPDX-License-Identifier: Apache-2.0
version: '2.1'

volumes:
pgdata:
walletstore:

networks:
pharma:
name: network_pharmacy
external: true

services:

explorerdb.pharma-network.com:
image: hyperledger/explorer-db:1.1.6
container_name: explorerdb.pharma-network.com
hostname: explorerdb.pharma-network.com
environment:

DATABASE_DATABASE=fabricexplorer
DATABASE_USERNAME=hppoc
DATABASE_PASSWORD=password
healthcheck:
test: "pg_isready -h localhost -p 5432 -q -U postgres"
interval: 30s
timeout: 10s
retries: 5
volumes:
pgdata:/var/lib/postgresql/data
networks:
pharma
explorer.pharma-network.com:
image: hyperledger/explorer:1.1.6
container_name: explorer.pharma-network.com
hostname: explorer.pharma-network.com
environment:

DATABASE_HOST=explorerdb.pharma-network.com
DATABASE_DATABASE=fabricexplorer
DATABASE_USERNAME=hppoc
DATABASE_PASSWD=password
LOG_LEVEL_APP=debug
LOG_LEVEL_DB=debug
LOG_LEVEL_CONSOLE=info
LOG_CONSOLE_STDOUT=true
DISCOVERY_AS_LOCALHOST=false
volumes:
./config.json:/opt/explorer/app/platform/fabric/config.json
./connection-profile:/opt/explorer/app/platform/fabric/connection-profile
./crypto-config:/tmp/crypto
walletstore:/opt/explorer/wallet
ports:
"8080:8080"
depends_on:
explorerdb.pharma-network.com:
condition: service_healthy
networks:
pharma
###connection profile content ::

{
"name": "network_pharmacy",
"version": "1.0.0",
"client": {
"tlsEnable": true,
"adminCredential": {
"id": "admin",
"password": "adminpw"
},
"enableAuthentication": true,
"organization": "retailerMSP",
"connection": {
"timeout": {
"peer": {
"endorser": "300"
},
"orderer": "300"
}
}
},
"channels": {
"pharmachannel": {
"peers": {
"peer0.retailer.pharma-network.com": {}
}
}
},
"organizations": {
"retailerMSP": {
"mspid": "retailerMSP",
"adminPrivateKey": {
"path": "/tmp/crypto/peerOrganizations/retailer.pharma-network.com/users/[email protected]/msp/keystore/priv_sk"
},
"peers": [
"peer0.retailer.pharma-network.com"
],
"signedCert": {
"path": "/tmp/crypto/peerOrganizations/retailer.pharma-network.com/users/[email protected]/msp/signcerts/[email protected]"
}
}
},
"peers": {
"peer0.retailer.pharma-network.com": {
"tlsCACerts": {
"path": "/tmp/crypto/peerOrganizations/retailer.pharma-network.com/peers/peer0.retailer.pharma-network.com/tls/ca.crt"
},
"url": "grpc://peer0.retailer.pharma-network.com:7051"
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant